Fixing 2-page paginated results bug