Fixing up pagination.