Fix iOS 6 runtime crash