Fix prefs when using localstorage, which I broke a moment ago