Fixes for iOS.