Fixed triangulation bug