Account for the fact that there may be fewer structures than asked for in settings.in.