fix search()