A protester in Hong Kong has received jail time for “desecrating” China’s national flag after it was belatedly decided that community service was too lenient a punishment for the offense.

21-year-old Law Man-chung threw a Chinese flag in the air, trampled on it, and chucked it into a garbage can that was later pushed into a pool during an anti-government protest in Sha Tin on September 22.

He said he did this all “for fun.”

Law wasn’t the only one having “fun,” video from one of the protests in Sha Tin on that day show a group of protesters parading upon a Chinese flag laid out on the floor of a mall before spray painting, watering, and poking the flag.

For his own actions, Law was sentenced to 200 hours of community service in October, becoming the first to be prosecuted in Hong Kong for a flag-related offense related to the anti-extradition protest movement.

At the time, Magistrate Li Chi-ho decided against jail time for Law because this was the young man’s first offense and because he at least didn’t burn the flag.

However, the ruling prompted complaints from both former Hong Kong leader CY Leung and from China’s People’s Daily, leading to prosecutors asking the Court of Appeal to review the decision, arguing that the punishment was “manifestly inadequate” considering the crime

The court agreed, finally sentencing Law to 20 days in jail on Friday for the “very serious offense that gravely undermined the divinity of the state.”

“The respondent put the national flag into the rubbish trolley as if it were rubbish, which was an exceedingly great insult to the dignity of the state the national flag symbolises,” the court said. “He further kicked the rubbish trolley containing the national flag into the pool, connoting a renunciation of the national flag, which further added to the insult.”

Previously, a 13-year-old girl in Hong Kong was given 12 months probation for burning China’s national flag at a protest in September.

At maximum, a person can be sentenced to three years in jail for desecrating the national flag.