fileupload bug fix