How to fix long polygons?