Saner behaviour in the preferences dialog