fix uploading problem