Repair ref management