Repair build logic