fix tcp send bug