PreferencePage fix for MacOS