Fixed bug occurring when netcsconn happens.