A Canadian court has ruled that the regulator of lawyers and paralegals in the country’s largest province overstepped when it imposed a litany of sanctions on dozens of licensing candidates accused of cheating on the bar exams.

The Ontario Divisional Court’s ruling wiped away most of the sanctions against the accused candidates because they didn’t receive a fair hearing. “The substantial and wide-ranging consequences suffered by the Applicants weigh in favour of a high level of procedural fairness,” the three-judge panel wrote.