Fixed add_wire