fixes for iOS devices