Fix multiple search bug