fixed getEdge for crs