Fixed an iOS 8 crapshoot of bugs.