Fix progress bar update.