fix use of paginator