fix bug in triangle.html