fix chunk skip first row in each group