fix cancel file upload error