Fix minor bug of paging