Canada’s main stock index ended flat on Thursday as a rebound in energy led by Canadian Natural Resources, after sharp losses the day before, offset losses for the financial sector.

Canadian Natural Resources jumped 9.8 percent to C$43.31 after reaching a deal to buy most of the Canadian oil sands assets of Royal Dutch Shell Plc for $7.25 billion.

“That’s a pretty smart move … to pick up some more assets when the price is still fairly cheap,” said Marcus Xu, president & director, M.Y. Capital Management Corp.

The overall energy group rallied 1.6 percent even as oil prices fell. U.S. crude oil futures settled $1 lower at $49.28 a barrel as record U.S. crude inventories fed doubts about whether Organization of the Petroleum Exporting Countries-led supply cuts would reduce a global glut.

Despite Thursday’s gains, the energy group has fallen more than 10 percent since the start of the year. On Wednesday, it posted its lowest close since September.

The Toronto Stock Exchange’s S&P/TSX composite index ended down 0.14 of a point at 15,496.84.

Six of the index’s 10 main groups ended lower. The materials group, which includes precious and base metals miners and fertilizer companies, lost 0.4 percent as lower metal prices offset gains for fertilizer shares.

Potash Corp of Saskatchewan Inc rose 2.9 percent to C$23.49, and merger partner Agrium Inc gained 2.9 percent to C$131.18 on prospects of less competition in the potash market.

Gold futures fell 0.4 percent to $1,203.5 an ounce and copper prices declined 1.3 percent to $5,689.85 a tonne as investors braced for a potential Federal Reserve interest rate hike next week.

Xu expects the recent weakening trend for commodities to continue to weigh on Canada’s commodity-linked stock market ahead of the Fed decision.

The heavyweight financials group fell 0.3 percent even as bond yields climbed after European Central President Mario Draghi acknowledged economic improvement in the euro zone.

Investors are taking profits in bank shares after they had a “nice run,” Xu said.

Dorel Industries Inc tumbled 7.4 percent to C$32.00 after the global consumer products company reported fourth-quarter results.

Encana Corporation (ECA) ended last trading session with a change of -0.1 percent. It trades at an average volume of 10.66M shares versus 28.06M shares recorded at the end of last trading session. The share price of $10.51 is at a distance of 104.78 percent from its 52-week low and down -24.12 percent versus its peak. The company has a market cap of $10.22B and currently has 972.3M shares outstanding. The share price is currently -11.08 percent versus its SMA20, -15.06 percent versus its SMA50, and 1.44 percent versus its SMA200. The stock has a weekly performance of -7.81 percent and is -10.48 percent year-to-date as of the recent close.

Potash Corporation of Saskatchewan Inc. (POT) recently recorded 2.9 percent change and currently at $17.4 is 15.73 percent away from its 52-week low and down -14.16 percent versus its peak. It has a past 5-day performance of 1.46 percent and trades at an average volume of 5.72M shares. The stock has a 1-month performance of -7.59 percent and is -3.29 percent year-to-date as of the recent close. There were about 842.56M shares outstanding which made its market cap $14.66B. The share price is currently -4.09 percent versus its SMA20, -5.59 percent versus its SMA50, and 1.83 percent versus its SMA200.