fix reconnect  bug