fix for iOS 6