fixed errors in fixed point