1) Fix bug with VertexToBegin function