fixed getEdge bug in view