fixed a problem with updating the progress bar