Fixed deprecation on iOS 7