update() implemented but not expected result on XOR

update() implemented but not expected result on XOR