fix bug in id_search