Fix bug causing layer corruption after TopoJSON export