bug with removing edges and vertexes fixed