fix progress bar bug