Crash prevention. Coordinate with iOS version.