Oil eked out a gain, after its biggest loss in two weeks, as the Trump Administration rekindled fears about global demand with a threat of new China tariffs and signaled a possible easing of tensions with Iran.

Futures edged higher in New York after tumbling 3.3% on Tuesday. President Donald Trump reiterated that he could impose additional duties on Beijing if he wants after agreeing to a trade-war truce with his counterpart Xi Jinping last month, while Secretary of State Mike Pompeo said Iran indicated it would be open to talks if some conditions were met. U.S. inventory figures were mixed as crude stockpiles fell, but that was offset by a large rise in distillates, the API reported.

Oil has rallied since mid-June as tensions with Iran ratcheted up amid tanker attacks and seizures, prompting concerns crude flows from the Middle East may be disrupted. Still, the prospect of a further deterioration in the U.S.-China trade war is again denting the outlook for global demand, while Gulf of Mexico crude production is being restored after storm Barry.

“Crude oil has clawed back a small part of what was lost yesterday when the White House created uncertainty on both the supply and demand side,” said Ole Hansen, head of commodities strategy at Saxo Bank. “The API number from yesterday points towards a limited amount of fireworks later with focus turning to product stocks with a big jump in distillate stocks expected.”

West Texas Intermediate for August delivery rose 30 cents, or 0.5%, to $57.92 on the New York Mercantile Exchange as of 9:49 a.m. in London. Brent for September settlement gained 50 cents to $64.85 a barrel on the ICE Futures Europe Exchange. The global benchmark crude traded at a premium of $6.80 to WTI for the same month.

See also: U.S. Oil Gives Korea Top Buyer a Pivot as Middle East Risk Soars

Stocks fell in Asia after Trump made the tariff remarks at a cabinet meeting Tuesday. Treasury Secretary Steven Mnuchin and U.S. Trade Representative Robert Lighthizer expect to have another call this week with top trade negotiators in China, and the two may travel to Beijing for meetings if the discussions by phone are productive, Mnuchin said Monday.

Iran’s Foreign Minister Mohammad Javad Zarif said in an interview with NBC News the “door is wide open” to negotiations if President Trump lifts sanctions he imposed on Iran’s economy in 2017. Zarif has previously said Iran wouldn’t negotiate with the U.S. under the threat of sanctions.