fix basic search bug