fix savetoflash