minor change to progress bar updating