fixed add_triangle