fixed a bug in showing upload progress