fix bug on triangles preview