Fixed bug on progress bar.