Fix for iOS devices