stop the rot
US /stɑp ðə rɑt/
UK /stɑp ðə rɑt/

1.
to take action to prevent a bad situation from becoming worse
:
•
The new manager was hired to stop the rot in the struggling company.
•
Urgent measures are needed to stop the rot in public services.