Build
Fixed bug in createClosedPolygon method