fixed endVertices(e)