A teenager who was locked up for nearly 40 days in a dispute over a snowball has filed a lawsuit against the Detroit school district after a judge dismissed the criminal case.

The Free Press reports Dominique Rondeau, now 18, was accused of throwing an icy snowball that shattered the windshield of a school police car in December 2013. Unable to come up with $2,000 bond, he spent weeks in juvenile detention until his bond was reduced.