Reconnect wires correctly