Fix for ContextMenu.