Fixed a crash in iOS 8 Beta 5