fixed for iOS