Make the writing to gSettings work properly
Fix a bug in the prefs buttons