correct errors in tcp server