Convicted sex offender headed back to prison