fix for iOS platform