fix bug when individual search is used