Fixed assuming squares were triangles.