fix for iOS 8.1 SDK