Mistake could lead to convicted child sex offender's release