fixes #764
Merge pull request #789 from magfest/group_badge_count_fix

fixes #764