Fixed undo swap.