Fixed crash when menus are partially/completely empty, removed unused methods