fix bug progress bar