Fixed bug when generating reports with nested groups
Merge pull request #1677 from jamespic/nested-bug

Fixed bug when generating reports with nested groups