Optimal Correction of the Public Debt and Fiscal Resilience Measures