Put one’s house in order

Meaning: To organise your affairs or correct your problems.

Example: The company needs to put its financial house in order.