Fix generation of XOR transform.