Sen. Bernie Sanders announced Saturday that he will support a bill to strip gun manufacturers' legal immunity from lawsuits, despite his 2005 vote for a bill that established the law he now backs repealing.

"I'm pleased that this legislation is being introduced," Sanders said in a statement Saturday, reported by MSNBC. "As I have said for many months now, we need to look at the underlying law and tighten it up."

Former Secretary State Hillary Clinton has hammered Sanders over that vote in a bid to paint the Vermont senator as weak on what Democrats call common sense gun laws.

Clinton's campaign chairman John Podesta argued Sanders had flip-flopped on the issue.

"The Clinton campaign welcomes Senator Sanders' debate-eve conversion, reversing his vote to immunize gun manufacturers," Podesta tweeted

The Democratic presidential candidates are set to debate Sunday night. The 2005 immunity bill, backed the National Rifle Association gives gun makers and dealers immunity from lawsuits by victims of crimes committed with guns they sell. Clinton, working to fend off a strong challenge from Sanders in Iowa and New Hampshire, is calling for revoking the immunity.

The repeal legislation was recently introduced by Sen. Richard Blumenthal, D-Conn., and Rep. Adam Schiff, D-Calif., to repeal key parts of the 2005 law. It stands almost no chance of passage in the Republican-run Congress.