need to fix a bug in get_in_nodes_cb