Fix node and edges reading.