Fix error running on iOS 8 beta 3