Patch something up
To mend, repair, or service something to the point of being functional or whole again
Examples
His plan is failing to improve the lives of the people and he’s scrambling to patch it up.
Mr. and Mrs. Smith are trying to patch things up.