[Editor's note: This story was updated at 1:50 p.m. CT April 26.]

Oil prices rebounded from early losses on April 26 after U.S. government data showed a larger-than-expected falloff in crude inventories, which encouraged buying after prices slid for several days on worries that a global crude glut was persisting despite cuts in output by producing countries.

U.S. crude prices stayed higher, while Brent edged back into negative territory but off session lows. West Texas Intermediate (WTI) was up 21 cents at $49.77 per barrel (bbl), while Brent crude, the international benchmark, was down 12 cents at $51.98/bbl by 1:06 p.m. CT (18:06 GMT).

The U.S. Energy Department said crude stocks dropped 3.6 MMbbl last week, more than double what was expected. The government data was a surprise the day after industry group the American Petroleum Institute said its data showed a build.

RELATED: EIA: Big Drawdown In US Crude Oil Inventories

Buying lifted U.S. crude futures just slightly after declines in six of the last seven days. Analysts noted that the Energy Information Administration (EIA) report also showed gasoline and distillate stockpiles grew, while U.S. production and imports increased.

"We're running a slight deficit and starting to eat into inventories but not by any meaningful amount," said Tanya Andrien, vice president in strategic development at Drillinginfo.

Reformulated blendstock gasoline prices dropped 1.8% to $1.5940 a gallon after gasoline inventories rose sharply.

Refining capacity utilization rose to 94.1%, highest since November 2015. That boosted gasoline inventories to 241 MMbbl, about where they were a year ago, which sapped refining margins.

Analysts warned that weak U.S. gasoline demand could weigh on crude prices in coming weeks unless demand spikes with summer driving season.

Brent and WTI prices got a boost in early trade when Saudi Energy Minister Khalid al-Fali said he was interested in talks between OPEC and non-OPEC producers to stabilize prices.

OPEC and other producing countries including Russia pledged to cut output by 1.8 MMbbl/d in the first half of 2017. OPEC meets in May to discuss extending cuts.

The average value of the Brent crude forward curve has fallen by over $5/bbl since the start of the year, suggesting doubts in the market about whether the glut will be reduced.

"We see week-to-week changes in EIA stocks reports but the bottom line is we have more crude than we did last year and are well ahead of what we had for the five-year averages—we're not running out of crude oil anytime soon," said Darin Newsom, DTN senior analyst in Omaha, Neb.