Fix some wire bugs.