Fix minor bug with the saving of the dataset