fix bug on progress bar