A four-year-old boy has reportedly been sentenced to life in prison in Egypt for a murderous crime spree.

The charges date back to 2014, when Ahmed Mansour Karni was two years old.

He was convicted of four murders, eight attempted murders, threatening police and vandalizing state property in his home province of el-Fayoum, west of Cairo, according to reports.

The bizarre conviction apparently happened in absentia, and could have been the result of a mix-up with the boy’s birth certificate. There were 115 defendants in the case, and Ahmed reportedly shares a name with an older relative.

All the defendants were convicted of various serious crimes and all were handed life sentences.

His defence lawyer said it was clear the judge did not read the details of the case before issuing his ruling.

It’s sparked outrage in Egypt, where the courts have come under fire for corruption and injustice.

“There is no justice in Egypt. No reason. Logic committed suicide a while ago. Egypt went crazy. Egypt is ruled by a bunch of lunatics,” Egyptian lawyer Mohammed Abu Hurira wrote in response to the ruling.