Cleanup pagination.