Fix a defect in data loading