NBC journalist John Heilemann slipped up on Wednesday during a conversation about immigration, admitting he’s a Democrat before immediately walking it back.

Watch:

“You can’t inflict this kind of policy on Americans, and not pay a political price,” Heilemann told MSNBC’s Nicole Wallace, referring to Trump’s recent executive order to stop separating families who entered the United States illegally. “We have a great chance to inflict [a political price on Trump] and his party on November. We, I mean the Democratic Party.”

Heilemann quickly tried to cover his tracks. “I’m not part of the Democratic party, but people who object to this policy, which I think is a lot of people.”

He then accused Trump of trying to “have it both ways” with regard to immigration by “talking about people like they’re vermin” and then issuing the executive order.

Heilemann works as a “national affairs analyst” for the network. (RELATED: John Heilemann Says Paul Ryan Is ‘No Longer On Team USA’)