Fix rendering of menus for plugins (CO-988)