bad way of rounding numbers, now fixed