Fix a bug with csv export clearing the batch in mid work