But the economy remains vulnerable to external shocks