Fixed a progress bar bug.