Properly read pref on startup