fix nodegroup_comp func
Merge pull request #13712 from allanhung/develop

fix nodegroup_comp func