Fix comptibility for iOS 5.