Fixed kml generation problem