Oil prices rose more than 1 percent Wednesday, lifted by a surprise drawdown in U.S. crude inventories and data from the International Energy Agency (IEA) suggesting OPEC cuts should create a crude deficit in the first half of 2017.

Data from the U.S. Energy Information Administration (EIA) showed U.S. crude stocks fell last week, dropping after nine consecutive increases.

Inventories fell by 237,000 barrels in the week to March 10, compared with analysts’ expectations for an increase of 3.7 million barrels.

The IEA said global inventories rose in January for the first time in six months despite OPEC output cuts, but said if it stuck to its production curbs the market should see a deficit of 500,000 barrels per day (bpd) in the first half.

“For those looking for a rebalancing of the oil market the message is that they should be patient, and hold their nerve,” the IEA said in its monthly report.

Brent futures rose by 68 cents, or 1.3 percent, at $51.60 a barrel by 1:07 p.m. ET (1707 GMT). Prices had hit a three-month low of $50.25 during the previous day’s trading.

U.S. West Texas Intermediate crude was up 79 cents, or 1.7 percent, at $48.51. On Tuesday, the price fell to $47.09, also the lowest since November.

EIA also reported gasoline stocks fell by 3.1 million barrels, compared with analysts’ expectations in a Reuters poll for a 2 million-barrel drop. Distillate stockpiles, which include diesel and heating oil, were down 4.2 million barrels, versus expectations for a 1.7 million-barrel drop.

Earlier, the IEA reported global inventories rising in January for the first time in six months despite OPEC cuts since Jan. 1, but said if OPEC stuck to limits the market should see a deficit of 500,000 barrels per day (bpd) in the first half of 2017.

“As long as OPEC stays on track and non-OPEC delivers on their agreed cuts, the market will continue to balance,” said Ole Hansen, head of commodity strategy at Saxo Bank.

The Organization of the Petroleum Exporting Countries said at the end of November it would cut 1.2 million bpd during the first half of 2017, and then in December reached a deal with non-OPEC producers to cut about 600,000 bpd from their output.

Despite OPEC compliance with its share of the cuts, stockpiles have continued to rise, in part because OPEC members pumped heavily before cuts kicked in and also because U.S. shale producers have raised output as Brent spiked above $58 in January.

Last week, prices plummeted more than 5 percent, the biggest drop in a year, as U.S. crude inventories surged much more than expected to a record high.

“While such patience (counseled by the IEA) may indeed benefit longer-term investors it may not be much help for money managers facing year-to-date losses on long positions, whether longer-term holdings benchmarked to the December 30 Brent closing price of $56.82 or purchased over the long period of range trading over the first ten weeks of the year,” Tim Evans, Citi Futures’ energy futures specialist, said in a note.

“Surplus inventories and rising U.S. production may be more of a worry to them.”

On Tuesday, prices had been hit hard by an OPEC report showing a rise in global crude stocks and a surprise output jump from OPEC’s biggest member, Saudi Arabia.

Secondary sources had said Saudi output fell in February to 9.797 million barrels per day (bpd), but Riyadh told OPEC it rose to 10.011 million bpd.

Saudi Arabia played down the figures, saying its supplies to the markers were effectively stable during January and February.

— CNBC’s Tom DiChristopher contributed to this report.