fixed bug for paging datasource