The world’s biggest pension fund posted its first profit in four quarters as stocks rebounded, providing some respite for the Japanese state money manager after critics lambasted it for taking on too much risk.

The Government Pension Investment Fund returned 1.8 percent, or ¥2.4 trillion in the three months ended Sept. 30, boosting assets to ¥132.1 trillion, it said in Tokyo on Friday. Domestic and foreign equities added ¥3.1 trillion as they recovered from their Brexit rout, outweighing a loss of ¥706.9 billion on bond holdings.

The profit comes after the fund lost more than ¥15 trillion over the previous three quarters, wiping out all investment gains since it overhauled its strategy in 2014 by boosting shares and cutting debt. As Japanese stocks extend their advance and U.S. equities climb to fresh records after Donald Trump’s election win, the prospect of further strong performance may help quash complaints at home that GPIF’s investing approach is too dangerous.

“It’ll take some pressure off,” said Naoki Fujiwara, chief fund manager at Shinkin Asset Management Co. in Tokyo. “This quarter will probably be good, too. But before we all get too excited, we need to be wary about whether this can continue for long.”

Prime Minister Shinzo Abe said in the Diet in September that the fund’s short-term losses aren’t a problem for Japan’s pension finances. GPIF’s purchases of stocks are a “gamble,” opposition lawmaker Yuichiro Tamaki said in an interview that month, after an almost 20 percent drop in the Topix index in the first half of the year was followed by a 7.3 percent one-day plunge after Britain’s shock vote to leave the European Union.

Domestic bonds, the only asset class to deliver a profit in the fiscal year ended March, posted a 1.3 percent loss in the three months through September after yields rebounded. That reduced national debt to 36 percent of holdings, compared to a target allocation of 35 percent. Yields on 10-year bonds climbed to minus 0.085 percent at the end of September from negative 0.23 percent at the end of June.

Local stocks made up 22 percent of GPIF’s portfolio at the end of September, while foreign shares accounted for 21 percent. That compares with targets of 25 percent for each. GPIF delivered a 7.1 percent gain on domestic stocks, beating a 6.2 percent rebound in the Topix during the period.

Returns from overseas assets were muted by a stronger yen, which rose 1.8 percent against the dollar in the quarter. GPIF’s international stocks gained 3.7 percent, while foreign bonds lost 0.2 percent as yields rose amid speculation the U.S. will tighten borrowing costs.

Alternative assets accounted for 0.05 percent of GPIF’s holdings, well below the allowable limit of 5 percent. Toyota Motor Corp., Apple Inc. and Microsoft Corp. were the fund’s top stock investments at the end of March, while Japanese government bonds, U.S. Treasuries and Italian debt were the largest bond holdings, GPIF said.