Fix some bugs in the progress bar visualization