fix nodegroup_comp func