Fix paginator logical error