Fixed null on addEdge