Fix when building mainmenu with multiple submenu's