bugfix in search algorithm