CWI-1524: Fix custom submenus not visible.