XY error detection and correction seem to be working