fixed bug for host group creation