Fixed warning for iOS 5