Short-term fix for undo issue in editor.