Samsung’s exploding-phone disaster hasn’t destroyed its profits, after all.

The South Korean electronics giant said Friday it expects fourth-quarter profits will leap 50 percent to their highest level in three years on strong chip sales and a smartphone rebound.

The upbeat outlook comes despite a slight fall in revenue and the anticipated $2.1 billion profit hit from the withdrawal of the fire-prone Galaxy Note 7 premium smartphone in October.

The guidance points to a more rapid recovery for the mobile business than many analysts had anticipated after one of the biggest product safety failures in tech history, and reflects steady price increases for memory chips.

“Samsung posted solid earnings only with sales of older smartphone models like the S7 after the Note 7’s discontinuation,” said Kim Sung-soo, a fund manager at LS Asset Management.

“This makes me have hopes for the (Galaxy) S8. Should they fare well, I expect Samsung to report record earnings this year.”

The South Korean technology giant said October-December operating profit was likely 9.2 trillion won ($7.8 billion), the highest since the third quarter of 2013 and well above the 8.2 trillion won tipped by a Thomson Reuters StarMine SmartEstimate from a survey of 21 analysts. The estimate was also higher than any individual forecast in the survey.

The South Korean won’s recent depreciation may have helped boost profits, some analysts said, as component sales are typically settled in U.S. dollars. The local currency fell 8.8 percent against the dollar in the fourth quarter.

Investors pushed Samsung shares up 43 percent last year, betting the surge in demand for memory chips and organic light-emitting diode screens for smartphones will more than make up for the Note 7 setback and translate to strong earnings growth.

Samsung shares recently were up 2.1 percent.

The world’s biggest maker smartphones, TVs and memory chips will not disclose detailed earnings, including the performance of its individual businesses, until late January.

With Reuters