a bug fix in dataProvider.js