fixing file-uploader bug