fix the progress bar