fix undo after mm rest change