Fixed error in DataProvider