Fixing progress bar issues.