fixes search duplicates