get back on the rails
US /ɡɛt bæk ɑn ðə reɪlz/
UK /ɡɛt bæk ɑn ðə reɪlz/

1.
to return to a normal or proper course of action after a period of difficulty or disorder
:
•
After a tough year, the company is finally starting to get back on the rails.
•
He needs to get back on the rails and focus on his studies.