mend one's ways

From Wiktionary, the free dictionary