Fix search group duplicates endpoint.