Clean up one’s act

To improve one’s performance.

The mayor will have to clean up his act if he wants to get elected again.