Rounding tweak to fix strange behavior at ends