The owner of 18 McDonald’s franchises in California, Arizona and Nevada will pay roughly $2 million to settle allegations that it allowed sexual harassment against teenage employees to continue unabated, the Equal Employment Opportunity Commission announced Friday.

The EEOC alleged in a lawsuit filed last year that AMTCR Inc. knew that supervisors, managers and coworkers were harassing the teens at various McDonald’s restaurants since at least 2017 but failed to address the problem. Nearly all quit because working conditions became intolerable, the agency alleged.