bugfix triangulation