fixed important bug: id -> c_id in nb_find