fix of triangulate homogcase