fixed regression when menus are empty