fix url and pagination.