Preferencespage more robust