Currently undo and redo are very unreliable and unpredictable in their behavior. This should be fixed.