fix wrong count of sent bytes in tunnels