Fix bug that frame does not refresh if UploadHandler meets an error