file upload bug fix