Fixed loading of prefs from the hash