Fix iOS 8 support