fix endless search loop bug