Fixed compatibility crash with menus.