fixing progress bar