Fixes bug with prefs not existing