fixed a bug in wire.transmission loop