Fix output bug with KML files