fixed a problem with search