fix progress bar value