fixed some triangulation issues