[PreferencesModel] fix errors in preferences model

@dangoor