fix rounding for lower boundary too