Fast casual chain Chipotle has agreed to pay $1.3 million in fines for child labor violations in Massachusetts.

chipolte-workers-sue-to-get-overtime-payThe fine caps a three-year investigation following a complaint by a parent whose kid was forced to work “well past midnight.”

In the course of the investigation, the state’s attorney general’s office discovered more than 13,000 child labor violations, including working without proper permits, working late into the night, and working more hours allowed per day and per week. Some 50 Chipotle locations were involved.

“Chipotle is a major national restaurant chain that employs thousands of young people across the country and it has a duty to ensure minors are safe working in its restaurants,” Attorney General Maura Healey said in the statement. “We hope these citations send a message to other fast food chains and restaurants that they cannot violate our child labor laws and put young people at risk.”