Berrien County Judge Angela Pasula on Monday resentenced Zach Anderson of Elkhart, Indiana, under a law that lets first-time offenders ages 17 to 21 have criminal convictions expunged under certain conditions.

Anderson spent 75 days in jail after pleading guilty to a misdemeanor. The girl, whom Anderson had met online, said she was 17.

Part of Anderson’s original sentence included 25 years on Michigan’s sex-offender registry and having to register as a lifetime sex offender in Indiana. He’s been removed from Michigan’s list, and Anderson’s lawyer says he’ll seek the same in Indiana.