fixed initialization of polygons