fix for saving settings