That’s it. Plenty of countries don’t do that but it’s a matter of political will/popular support for ending inflation, not a technically difficult problem. At worst you can just adopt another country’s currency like Kosovo has the Euro or Costa Rica has the dollar.