Fixes the progress bar