Fix Bug for iOS 8 SDK