fix "fail to upload" issue.