Possible fix for iOS strange behavior