fixed a bug with search tools