GOP Michigan Senate candidate John James poked fun at former New York Mayor Rudy Giuliani (R) after Giuliani accidentally misnamed him in his endorsement ahead of next week's midterm elections.

Giuliani, who is now serving as President Trump Donald John TrumpOmar fires back at Trump over rally remarks: 'This is my country' Pelosi: Trump hurrying to fill SCOTUS seat so he can repeal ObamaCare Trump mocks Biden appearance, mask use ahead of first debate MORE’s personal lawyer, endorsed James on Thursday night, but twice referred to him as “Don” on Twitter.

ADVERTISEMENT

“Don James is running for Senate in Michigan. He is a combat veteran, a successful business man and believes in lower taxes, more jobs, effective health care and safety and security,” Giuliani wrote.

Don James is running for Senate in Michigan. He is a combat veteran, a successful business man and believes in lower taxes, more jobs, effective health care and safety and security. He’s the future of our party. Let’s make that future now.. Vote for Don James. — Rudy Giuliani (@RudyGiuliani) November 2, 2018

James jokingly referred to Giuliani as “Randy” in a tweet late Thursday night thanking him for his support.

“Thanks, Randy! While you were leading NYC through the aftermath of 9/11, I was at West Point training to bring terrorists to justice,” James wrote.

Thanks, Randy! While you were leading NYC through the aftermath of 9/11, I was at West Point training to bring terrorists to justice. pic.twitter.com/l5F1Vng56u — John James (@JohnJamesMI) November 2, 2018

The national GOP has rallied around James, a veteran and business owner, in his bid to unseat Sen. Debbie Stabenow Deborah (Debbie) Ann StabenowOVERNIGHT ENERGY: Trump rollbacks could add 1.8 billion tons of greenhouse gas emissions over 15 years: analysis | Intensifying natural disasters do little to move needle on climate efforts | Experts warn wildfire smoke could worsen COVID-19 GAO report finds brokers offered false info on coverage for pre-existing conditions Democrats back away from quick reversal of Trump tax cuts MORE (D).

Vice President Pence has made multiple appearances in the state to bolster James's candidacy, as have Donald Trump Jr. Don John Trump'Tiger King' star Joe Exotic requests pardon from Trump: 'Be my hero please' Zaid Jilani discusses Trump's move to cancel racial sensitivity training at federal agencies Trump International Hotel in Vancouver closes permanently MORE and Kid Rock.

President Trump has also endorsed James.

Stabenow, however, has consistently led James in the polls and held a 9-point lead in a survey on Monday.