fixes results pagination.