fix using of a tcp-server