Progress bar bug fix