fix path for undo swap etc