Fix error on iOS 8