fix issue with prefs initial value