fix error when can't upload data