fix savebutton for WKT input (see #111)