Fixed bug: sansa and xor