idiom
get back on track
volver al buen camino después de un error o contratiempo
Meaning
to return to the right path after a mistake or setback
Example
After a few mistakes, she managed to **get back on track**.
Después de algunos errores, logró volver al buen camino.