Fix iOS 7 crash