Add fixes for iOS/Safari