HARRISBURG, Pa. (AP) — A federal judge has thrown out former Penn State President Graham Spanier’s child-endangerment conviction, less than a day before he was due to turn himself in to jail. U.S. Magistrate Judge Karoline Mehalchick in Scranton, Pennsylvania, issued a decision late Tuesday that gave state prosecutors three months to retry Spanier.

She agreed with Spanier’s argument he was improperly charged under a 2007 law for actions that occurred in 2001, when he was responding to a complaint about Jerry Sandusky showering with a boy on campus.

READ MORE: WATCH: New Castle County Police, Neighbor Rescue Elderly Woman Trapped Under SUV

Spanier had been due to report to jail early Wednesday to begin serving a minimum sentence of two months.

READ MORE: Joel Embiid Scores 40 But Sixers Blow 24-Point Lead In Loss To Clippers

The 70-year-old Spanier was forced out as president shortly after Sandusky’s 2011 arrest.

MORE NEWS: Philadelphia Postponing COVID-19 Vaccine Mandate For City Workers Again

(©Copyright 2019 by The Associated Press. All Rights Reserved.)