fix warning about iOS 7 deprecation