fix a progress bar issue