Gold snapped a three-day win streak to finish lower on Wednesday after the White House and lawmakers reached a deal to extend the deadline on the federal government’s debt ceiling and as stocks recouped some of their losses from the previous session.

Gold for December delivery US:GCZ7 slid $5.50, or 0.4%, to settle at $1,339 an ounce. The SPDR Gold Shares exchange-traded fund GLD, +0.13% fell 0.6%.

The precious metal had rallied to start the holiday-shortened week as nervousness over North Korea’s weekend nuclear display combined with weakness in the dollar and broad losses in U.S. equities boosted precious metal futures to their highest close since Sept. 22.

Trump and congressional leaders reach an agreement to extend the debt limit and fund the government to Dec. 15.

The development eases the upward pressure on the gold in the near term although the impact on gold’s long-term trends is minor, said Nico Pantelis, head of research at Secular Investor. But a minor

Read:This—and not North Korea—is why scared investors are buying gold

On the data front, the Institute for Supply Management said its nonmanufacturing index rose to 55.3% in August from 53.9% in July, indicating steady growth for U.S. companies.

The data failed to bolster the dollar, which was hobbled by a pair of dovish Federal Reserve speeches from Tuesday, benefiting gold.

Prospects for a slower Fed response to unwinding easy monetary policy has weighed on the dollar and lifted gold in recent sessions. Two voices backed a conservative Fed approach. The Fed’s Neel Kashkari said in a Tuesday speech it’s “very possible” rate hikes are doing “real harm” to economy. Colleague Lael Brainard said the central bank may have to slow down the pace of interest-rate hikes given the recent low readings for inflation.

Even Dallas Fed President Robert Kaplan, who is seen as a centrist, suggested in a speech that the Fed can afford to be patient because of low inflation.

“The cocktail of these comments make the next [consumer-price index] data, due out on the 14th of September, even more important we think, and enhances our view that inflation is the main determinant on whether the Fed will indeed proceed with another rate hike this year,” said Charalambos Pissouros, senior analyst with IronFX Global.

Meanwhile, the gold market shrugged off the unexpected news that Fed Vice Chairman Stanley Fischer is resigning next month due to personal reasons.

The ICE U.S. Dollar Index DXY, +0.03% was fractionally off at 92.21. Gold and the U.S. unit typically move inversely as gold priced in greenbacks is more attractive to investors using another currency.

Elsewhere in metals trading, silver for December delivery US:SIZ7 dropped 3 cents, or 0.2%, to settle at $17.91 an ounce. The iShares Silver Trust ETF SLV, -1.18% dropped 0.2%.

Copper traded near a three-year high with December copper US:HGZ7 extending gains to add 2 cents, or 0.8%, to settle at $3.15 a pound.

October platinum US:PLV7 shed $1.90, or 0.2%, to settle at $1,007.10 an ounce, while December palladium US:PAZ7 dropped $25.10, or 2.6%, to settle at $931.90 an ounce.