Anvil code fixed. Repair functionality is complete.