fix clear search buffer