Fixes for iOS 6 Safari