Fix group name when using wildcard group definitions.