progress bar bug fix