fix bug of progress bar