loadpref crashes the app