Fixed #5515 (Crash on Preferences/Applications)