Improved compatibility with iOS 7.