More fixes for the case on put group totals on header