Fixed search bug