Fix export kml in safari browsers