Fix hostgroup lookup