fix bug, support for iOS 7.1