fix tcp resolver bug