fix bug send data thread