Fix get menu with non sequential headings