Fix check resource duplicates also in its containment group