Upload bug fix