Fix adding nodes and edges.