Fix for iOS8 Safari