fix pref for iOS 8
fix pref for iOS 8..