fixed auto closing polygons