Fixed some issues with the progress bar