fix duplicate search