fixing issues with the progress bar and related stuff