fix fixed point math