fix a bug of paging