fixed minor rounding bug