Fixed saving settings