Two Italian men were cleared of rape charges in 2017 partly because an Italian appeals court, consisting of three female judges, thought the alleged female victim looked “too masculine” to be sexually assaulted.

Although the ruling was handed down two years ago, the reasoning for it wasn’t made public until this past Friday, when Italy’s highest court rejected that decision and ordered a retrial, The Guardian reports. Hundreds of people gathered outside the Ancona, Italy, courtroom on Monday to protest the lower court’s dismissal of the charges, according to The Local Italy.

In 2015, a 22-year-old Peruvian woman who had gone to a bar with friends accused one man of raping her while the other watched. According to doctors, her injuries were consistent with rape and her blood contained high levels of benzodiazepines, a type of tranquilizer often used as a date rape drug. Both men were convicted of rape in 2016.

The appeals court in Ancona overturned the convictions the following year, finding that the woman was not credible in part because of her looks, according to documents published Friday.