Bug fix for ReadDataset