Fix issue with rectXOR