fixes progress bar