Update PreferencesHelper.cs

...and this is what happens when you paste code without testing it :fail: