Some cleanup for exporting kml