Swap compare correction