The New Jersey Supreme Court on Wednesday held 2014 amendments to Megan’s Law enhancing certain penalties for sex offenders who violate parole requirements unenforceable against four defendants based on the ex post facto clauses of both the state and federal constitutions.

The court, in a unanimous ruling, vacated the convictions and sentences of four paroled sex offenders who committed minor violations of their parole conditions and mounted a challenge to the laws. The ruling vacates the convicts’ third-degree convictions for the parole violations.