fixed race condition on upload progress check