fix server socket error