President Donald Trump has long used Twitter to attack his political enemies, but early Thursday morning he tweeted against his own administration by criticizing the Foreign Intelligence Surveillance Act:

“House votes on controversial FISA ACT today.” This is the act that may have been used, with the help of the discredited and phony Dossier, to so badly surveil and abuse the Trump Campaign by the previous administration and others? — Donald J. Trump (@realDonaldTrump) January 11, 2018

The White House supports FISA’s reauthorization. As Jonathan Chait of New York magazine notes, the administration “sent its highest-ranking security officials to lobby Congress for reauthorization, and reiterated its endorsement of the law as recently as last night.”

As often happens, Trump seems to have influenced by his preferred cable news network. Prior to Trump’s tweet, Fox News senior judicial analyst Andrew Napolitano had advocated against FISA reauthorization on Fox and Friends, one of the president’s favorite shows. Knowing that the commander-in-chief was likely to be watching, Napolitano turned to the camera and said, “Mr. President, this is not the way to go.”

During the segment, after claiming that Trump's "woes began" with "surveillance of him," Andrew Napolitano literally turns to the camera and says, "Mr. President, this is not the way to go." pic.twitter.com/W8NrtDDP3I — Matthew Gertz (@MattGertz) January 11, 2018

Trump’s tweet perplexed Washington, especially members of his own party. As Axios reports, “Sources in GOP leadership were horrified by a tweet they consider wildly irresponsible given the national security stakes. Per a source close to Republican leaders: ‘I have decided that the only way to stay sane in Trump’s Washington is to ignore everything he says.’” Later on Thursday morning, likely due to pushback from Republicans, Trump posted a tweet that contradicted the first one:

With that being said, I have personally directed the fix to the unmasking process since taking office and today’s vote is about foreign surveillance of foreign bad guys on foreign land. We need it! Get smart! — Donald J. Trump (@realDonaldTrump) January 11, 2018

This confusion is further proof that Trump often doesn’t even know his own administration’s policies. It comes just days after a White House meeting with congressional leaders where Trump agreed with Democratic Senator Dianne Feinstein about the need for a clean DACA bill—until he was reminded by House Majority Leader Kevin McCarthy that this is not what Republicans stand for.