fix bug rounding down tied points