OSX: Fixed bugs in Preferences window.