Fix for recursive group retrieval

Recursive group retrieval was missing elements contained in the root
node.