fixed problem with search