Wiktionary
clean up one's act
vb. (context idiomatic English) to reform; to improve one's habits