fixed complie error on iOS 7