Fixed bug in TriangleFile