A Texas appeals court has overturned a Fort Worth woman’s voter fraud conviction and five-year prison term for casting an illegal provisional ballot.

Crystal Mason did not know that being on probation for a previous felony conviction left her ineligible to vote in 2016, the state 2nd District Court of Appeals in Fort Worth ruled Thursday.

Prosecutors maintained that Mason read and signed an affidavit accompanying the provisional ballot affirming that she had “fully completed” her sentence if convicted of a felony.