fix bug with paginator