Use correct array type in group_calc_offset