Fixed bugs crashing triangulation from user created polygons