fix bug for OUTPUT_TO_KML not working