Fixed getEdge