fix for polygons