repairing flow