Fixed a problem with the centering of triangles.