fixed problem with file upload