Add assert in make_node