fixed a search problem