Fix progress bar

tested by hand