fix server reconnect