set to rights
Also, put to rights. Place in proper condition or order. For example, The caterer promised to set the room to rights before he left, or Don't worry, the lawyer will put the will to rights. These terms date from the second half of the 1600s, although to rights in the sense of “in proper order” was first recorded about 1330. Also see set right.