fixed progress bar updating