Fixed deprecation with iOS 7.1