fix operation on nil tcp conn