Fix error messages not being displayed in the preferences configuration