Fix bug in KML export