fix bug where polygons with fewer points than a previous polygon would have the extra points of the previous appended.