rounding bugs fixed