Fix a bug in data provider to make multiple reader work