Fixed marking Undo/Redo options in context menu as disabled.