Fix prefs window