fix paging for search by connection