Fix iOS 8 crash.