Fix the preferences window display