Fixes to preferences.