progress bar percent bug fix