fixed rounding error in bar charts