Fix for iOS 5