fixed multiple search bug