Fixed close search bug