fixed issues while uploading a single file