added null to prefs fields