Fixed bug referring to file upload