Fix bug 963295 - group merging

Fixes bug 963295