fixing the progress bar