Fixed some weird behaviour with the triangles