Fix progress bar

test by hand