better handling of bad polygons
0.5.1