fixed progress bar bug