undodir fix!