Fixed kml generation to be valid