Fixed a bug that broke the progress bar.