fix xcode warnings