In one of the more dramatic salvos of the first Democratic presidential debate on Tuesday, Martin O’Malley took a swipe at Bernie Sanders, claiming that the Vermont senator “panders to the NRA.”

O’Malley reiterated his opposition to the National Rifle Association toward the end of the debate. Asked which political enemy he is most proud of making, the former Maryland governor declared proudly: the NRA.

And yet O’Malley accepted $40,000 from the NRA in 2012 as the chair of a national political committee, disclosures show.

The fundraising took place while O’Malley served as the chairman of Democratic Governors Association, a nonprofit group designed to help elect Democrats win statehouses. O’Malley led the DGA as its top fundraiser and was retained as finance chair following his term as chair.

The DGA disclosure is below:

