remove session.flush in saveDataset