fix verification condition for search