fix duplicate token while reconnecting