Fixed handling of host templates in conn