Fixing bug in paging queries.