fixes for iOS