Traveling midway explains why sex offender was allowed to work at fair