Fix for iOS SDK 8