fix the upload cancel bug