fixed error while uploading a single file