fixing bug with abandoned wires