Fix the progress bar not being updated