Fix sum_stat() bug in group_reporting