fix undo dir