fix for iOS