Orphan avoidance was incorrect, somehow the _avg_detail check ended up in the group footer rules instead of the group header rules.
Merge branch 'master' of https://github.com/Solomoriah/PollyReports