Fixing compatibility with iOS 8.