fixed bug: multiple pref saves