fix xcode 7 bug