loadPreferences seems to be the cause, which part?