Fix rounding error in progress bar