Fixed a search bug