Fix iOS7 deprecation.