Japan’s economy had more momentum than initially believed ahead of the record surge in virus cases that contributed to Prime Minister Yoshihide Suga’s downfall.

Gross domestic product grew at an annualized pace of 1.9% in the three months to June — faster than earlier estimates of 1.3%, according to a revised report by the Cabinet Office on Wednesday. The figures showed extra government spending, business investment and private consumption buoyed growth in the country.

The stronger rebound confirms that the economy avoided falling back into recession despite returning to a state of emergency, but it still failed to recoup the losses of the first quarter.