fix progress bar for values above upper bound