Fixed bug in File uploading