Fixed bug in simplified polygons