Fix for group vs group within group collision (fixes #877)

This fixes bug #877