fixed bug with paginator