Fix error when trying to nest hostgroups