The 17-year-old who was jumped by peers in a school bathroom fight has had her conviction overturned.

In 2016, 16-year-old Amy Joyner-Francis went into cardiac arrest after being attacked by classmates at a Delaware high school.

Nearly 20 students watched as 17-year-old Trinity Carr beat on Joyner-Francis while another student held her in place in April 2016. When a teacher, who’d heard screaming, she found Joyner-Francis in a stall, she called paramedics. The teen lost consciousness while on the bathroom floor.

Joyner-Francis was already suffering from lung and heart defects, the effects of which, were exacerbated by the fight.

“While it may be true that Amy Joyner-Francis, due to her condition, could have died from a multitude of stressors, until such an event occurred, if it were to have occurred at all, she had a right to live one more day, one more week, one more month or year until her time, without a contributing cause by another,” Delaware Family Court Judge Robert Coonin said in 2016.

The death of the Howard High School of Technology student was ruled a homicide. Carr, along with two other teens, were charged. Carr was found guilty of criminally negligent homicide and third-degree criminal conspiracy. She was sentenced to six months in a juvenile facility in 2016. She was then supposed to be placed under court supervision until turning 19.

But on Thursday, CBS Philadelphia reported Delaware’s Supreme Court decided to overturn Carr’s conviction, stating that Carr could not have foreseen Joyner-Francis’ death.