solve progress bar bug