Fixed the order of the coordinates while exporting plans to KML.