Fix bug determining size of predefined hosts to add