Fix iOS 5 crash.