bug fixing file upload