fixing prefs