fix subdivision of implicitly closed polygons