Fix for progress bar max bug.