fix xor for reals