During a major White House speech Thursday announcing expanded border measures, President Biden fumbled while discussing the replacement of Title 42, a public health law that has been used to deter migrants at the border. 

The speech came days before the president’s first-ever visit to the southern border next week as his administration struggles to deal with a historic surge in migrants. Asked why he’s visiting now when Republicans have been calling on him to visit since the start of his presidency, Biden shot back that Republicans "haven’t been serious about this at all." 

Joe Biden

President Joe Biden speaks about border security in the Roosevelt Room of the White House, Thursday, Jan. 5, 2023, in Washington. Vice President Kamala Harris stands at left.  (AP Photo/Patrick Semansky)

The president then predicted that Title 42 would be gone by the end of the year. 

"Title 42 is going to go away before the end of the year, in terms of the Supreme Court. My prediction. And then we’re going to have to use Title 9," Biden said before quickly correcting himself to "Title 8. 

"Eight, right? Am I right? Yeah, Title Eight. Eight-nine," Biden said, appearing flustered. 

TWITTER EXPLODES AFTER BIDEN REFERS TO KAMALA HARRIS AS ‘PRESIDENT’ – AGAIN

At another point in the speech, Biden mispronounced U.S. Customs and Border Protection as "Customs and Border Patrol" while discussing fentanyl seizures. 

Since March 2020, Title 42 has been used to deter asylum-seeking migrants some 2.5 million times at the U.S.-Mexico border. The law was enforced during the Trump administration as an emergency health measure to prevent the spread of COVID-19.  

Migrants in El Paso

FILE: An aerial view of immigrants lining up next to the U.S.-Mexico border fence after spending the night outside on December 22, 2022, in El Paso, Texas.  (John Moore/Getty Images)

Biden moved to end the Title 42 restrictions, and Republicans sued to keep them. The U.S. Supreme Court has kept the rules in place for now. White House officials say they still believe the restrictions should end, but they maintain they can continue to turn away migrants under immigration law.

Should Title 42 end the Biden administration would revert to Title 8, which mandates that any illegal immigration present in the United States "without being admitted or paroled, or who arrives in the United States at any time or place other than as designated by the Attorney General, is inadmissible."

BIDEN SLAMMED FOR INACCURATE BORDER COMMENTS BY EX-TRUMP OFFICIAL: ‘WASN’T SURE WHAT HE WAS TALKING ABOUT'

Biden said Thursday the U.S. would immediately begin turning away Cubans, Haitians and Nicaraguans who cross the border from Mexico illegally. The new rules expand on an existing effort to stop Venezuelans attempting to enter the U.S., which began in October and led to a dramatic drop in Venezuelans coming to the southern border. 

A large group of migrants

FILE: Immigrants bundle up against the cold after spending the night camped alongside the U.S.-Mexico border fence on December 22, 2022, in El Paso, Texas.  (John Moore/Getty Images)

"Do not, do not just show up at the border," Biden said as he announced the changes, advising: "Stay where you are and apply legally from there." 

CLICK HERE TO GET THE FOX NEWS APP

Biden is scheduled to visit to El Paso, Texas, on Sunday for his first trip to the southern border as president. From there, he will travel on to Mexico City to meet with North American leaders on Monday and Tuesday. El Paso is about 632 miles from where the border chaos is at its worst, in the Rio Grande Valley of south Texas. 

Fox News’ Adam Shaw and The Associated Press contributed to this report.