fixing for iOS