Kml export fix #1106

resolves #1106.