President Obama misspoke during a campaign speech in Ohio, then used the accidental comment to criticize Mitt Romney.

Speaking at Kent State University on Wednesday, Obama mistakenly said he was in favor of more outsourcing. 

Obama quickly realized his mistake and recovered by saying he was just drawing on Mitt Romney.

"I want to see us export more jobs — export more products," Obama said. Realizing his error, he continued, "Excuse me. I was channeling my opponent there for a second."

The comments came during a part of his speech in which Obama was attacking Romney on his policies toward China. The presidential candidates have recently traded barbs on the matter, with Obama saying Romney has a long record in private business of moving jobs out of the U.S. to countries like China and Romney saying the Obama administration has allowed China to take advantage of the United States on trade. Romney has said that if elected, he would treat China as a "currency manipulator." 

Obama reiterated his criticism during his Wednesday evening speech. 

"Now, I've gotta admit that the message he's delivering now is better than the one he was delivering all those years he was profiting shipping all those jobs to China," Obama said. 

The president also attacked Romney for saying that, unlike Obama, he would transform Washington from the "inside out." Republicans have recently criticized Obama for saying that his biggest mistake in his term was to think he could change Washington from the inside.

"My opponent got real excited about this," Obama said. "And I'm thinking, what kind of inside job is he talking about? Is he talking about an inside job of rubber-stamping a top-down agenda from this Republican Congress? Because if he is, we don't want it."