Fix for iOS 6.