Revert swapping