fix for iOS 6.0