upload bug fix