fixed bug where polygons took very long to load