Fixed paging bugs on server side.