Two days after President Donald Trump signed an executive order rolling back Barack Obama’s Climate Action Plan, easing fracking restrictions and reversing the previous administration’s efforts to shrink America’s carbon footprint, the Environmental Protection Agency sent out a press release intended to congratulate the president for his bold leadership. The agency included quotes from groups like the American Coalition for Clean Coal Electricity, the Chamber of Commerce, and the American Petroleum Institute, all of whom heaped praise on Trump. But the e-mail also contained an unexpected message—one attributed to West Virginia Republican senator Shelley Moore Capito, a longtime supporter of the coal industry in her home state.

“President Trump has chosen to recklessly bury his head in the sand,” the quote attributed to Capito read. “Walking away from the Clean Power Plan and other climate initiatives, including critical resiliency projects is not just irresponsible— it's irrational.” It continued: “With the world watching, President Trump and Administrator Pruitt have chosen to shirk our responsibility, disregard clear science and undo the significant progress our country has made to ensure we leave a better, more sustainable planet for generations to come.”

There were three apparent problems with the quote, which was featured prominently atop the E.P.A.’s press release. First, it wasn’t exactly a ringing endorsement of Trump’s executive order. Second, the release misspelled the senator’s first name. And third, Capito never actually said any of that. The E.P.A. accidentally attributed the quote to Capito, when it had actually come from Democratic senator Tom Carper of Delaware, the Democrat leading the Environment and Public Works Committee. Oops.

In reality, Capito’s statement praised Trump for signing the executive order: “If fully implemented, the Clean Power Plan would have completely decimated West Virginia’s vital coal industry while having no meaningful climate impact,” Moore said. “I was honored to join the president for the signing of this Executive Order, and I look forward to continuing working with the Trump administration to advance environmentally responsible policies that grow the economy—not kill jobs.”

The misattribution, the E.P.A. said, was the result of human error. “An internal draft was mistakenly sent with a quote that belonged to Senator Carper but was wrongly attributed to Senator Capito, whom we originally meant to quote,” a spokesperson told Mother Jones. “We apologize for the error and are making sure that our process is improved as we build our team.” The agency later sent out a corrected version.