Wiktionary
redeem oneself
vb. (context idiomatic English) to resolve, or make up for, one's previous folly.