fixed type in kml function