fix jtag issue