Fixing the silly error of using .|. instead of xor