Fixing for iOS 6