fix bug with tun