Fix for iOS8.