The Republican candidates for president have some major differences in their policies and their personal lives. But they have one striking thing in common—they all say the federal government is responsible for the financial crisis. Even Newt Gingrich (pilloried for having been a Freddie Mac lobbyist) says: “The fix was put in by the federal government.”

The notion that the federal government, via the Community Reinvestment Act (CRA) and by pushing housing finance giants Fannie Mae and Freddie Mac to meet affordable housing goals, was responsible for the financial crisis has become Republican orthodoxy. This contention got a boost from a recent lawsuit the Securities and Exchange Commission (SEC) filed against six former executives at Fannie and Freddie, including two former CEOs. “Today’s announcement by the SEC proves what I have been saying all along—Fannie Mae and Freddie Mac played a leading role in the 2008 financial collapse that wreaked havoc on the U.S. economy,” said Congressman Scott Garrett, the New Jersey Republican who is chairman of the financial services subcommittee on capital markets and government-sponsored enterprises (GSEs).

But the SEC’s case doesn’t prove anything of the sort, and in fact, the theory that the GSEs are to blame for the crisis has been thoroughly discredited, again and again. The roots of this canard lie in an opposition—one that festered over decades—to the growing power of Fannie Mae, in particular, and its smaller sibling, Freddie Mac. This stance was both right and brave, and was mostly taken by a few Republicans and free-market economists—although even President Clinton’s Treasury Department took on Fannie and Freddie in the late 1990s. The funny thing, though, is that the complaint back then wasn’t that Fannie and Freddie were making housing too affordable. It was that their government-subsidized profits were accruing to private shareholders (correct), that they had far too much leverage (correct), that they posed a risk to taxpayers (correct), and what they did to make housing affordable didn’t justify the massive benefits they got from the government (also correct!). Indeed, in a 2004 book that recommended privatizing Fannie and Freddie, one of its authors, Peter Wallison, wrote, “Study after study has shown that Fannie Mae and Freddie Mac, despite full-throated claims about trillion-dollar commitments and the like, have failed to lead the private market in assisting the development and financing of affordable housing.”

When the bubble burst in the fall of 2008, Republicans immediately pinned the blame on Fannie and Freddie. John McCain, then running for president, called the companies “the match that started this forest fire.” This narrative picked up momentum when Wallison joined forces with Ed Pinto, Fannie’s chief credit officer until the late 1980s. According to Pinto’s research, at the time the market cratered, 27 million loans—half of all U.S. mortgages—were subprime. Of these, Pinto calculated that over 70 percent were touched by Fannie and Freddie—which took on that risk in order to satisfy their government-imposed affordable housing goals—or by some other government agency, or had been made by a large bank that was subject to the CRA. “Thus it is clear where the demand for these deficient mortgages came from,” Wallison wrote in a recent op-ed in The Wall Street Journal, which has enthusiastically pushed this point of view in its editorial section since the crisis erupted.

But Pinto’s numbers don’t hold up. The Financial Crisis Inquiry Commission (FCIC)—Wallison was one of its 10 commissioners— met with Pinto and analyzed his numbers, and concluded that while Fannie and Freddie played a role in the crisis and were deeply problematic institutions, they “were not a primary cause.” (Wallison issued a dissent.) The FCIC argued that Pinto overstated the number of risky loans, and as David Min, the associate director for financial markets policy at the Center for American Progress, has noted, Pinto’s number is far bigger than that of others—the nonpartisan Government Accountability Office estimated that from 2000 to 2007, there were only 14.5 million total nonprime loans originated; by the end of 2009, there were just 4.59 million such loans outstanding.