fixed progress bar issue