Fixed saving settings in more native variant.