Fixed the way triangles are selected