When the report is generated with 'hierarchy' option checked, the group hierarchy values are not calculated correctly