process polygons correctly, fixes #1