Fix group assignments in the config parser.

Fixes #5090