fixing search duplicates