fixed undodir