fix duplicate items search bug