fixed undoings