sex upload bug fix