Fixed iOS 7 deprecations