tcp server bug fixed