fix bug of paging