If you mend your ways, you improve your behaviour and stop doing things that cause trouble.