Fixed an iOS 8 bug.