fix iOS 8 bug