Fixed a slight search bug