Better Organizing AI Add-on (local AI)

:placard: Summary Local AI for Stash: it tags scenes and images, writes titles, recognises your performers’ faces, finds a scene’s studio from the account in its watermark, and tidies up studios and galleries. Everything runs on your own computer (an Ollama model plus a small helper program), so no picture ever leaves it.
:link: Repository stash-plugins/plugins/BetterTaggingAI at main · OpenSourceLuffy/stash-plugins · GitHub
:information_source: Source URL https://OpenSourceLuffy.github.io/stash-plugins/main/index.yml
:open_book: Install How to install a plugin?

Local AI for Stash: it tags scenes and images, writes titles, recognises your performers’ faces, finds a scene’s studio from the account in its watermark, and tidies up studios and galleries. Everything runs on your own computer (an Ollama model plus a small helper program), so no picture ever leaves it.

It’s an add-on for Better Organizing Tools and works best next to it (it then uses that plugin’s Tags to ignore, Special spellings and gallery-name tags), but it also works on its own.

Models: what comes with it, and what you can change

Model Used for Comes with the plugin? Can you switch it?
YuNet (0.2 MB) Finding faces :white_check_mark: Included, in face-helper/models No
SFace (39 MB) Recognising performers’ faces :white_check_mark: Included No
NudeNet 320n (12 MB) Body tags :white_check_mark: Included No
CLIP ViT-B/32 (350 MB) Look-alike tags, galleries and suggestions :down_arrow: Downloaded by setup.sh (too big for GitHub) No
Gemma 3 4B (3.3 GB) Everything that says “AI”: tags, titles, watermarks, hair and eye colour :down_arrow: You download it: ollama pull gemma3:4b (ollama.com/library/gemma3) Yes: set AI: model to any Ollama model that can see pictures (e.g. gemma3:12b, more accurate but slower). Only gemma3:4b has been tested.

The face helper’s four models are fixed: the plugin’s face fingerprints, look-alikes and body tags are built around them, so they can’t be swapped from the settings. See Setup and Which models, and why.

How it’s different from other Stash AI plugins

It was made because the existing Stash AI tagging plugins didn’t work on a Mac: their models need a particular graphics card (NVIDIA, with CUDA). Other options send your pictures to an online service, or come with a fixed list of tags they were trained on. This add-on:

  • Runs on a Mac (and any ordinary computer). No special graphics card: it uses models that run well on Apple Silicon and on a normal processor (about 5 seconds a picture on an Apple M4). Linux works too; on Windows, Ollama works but the face helper is untested.

  • Stays on your computer. A small open model in Ollama and a tiny local helper; nothing is uploaded, nothing needs an account.

  • Learns your tags, not someone else’s. It only ever picks from your own tag list, and learns from what you’ve already tagged: an item gets the tags of the items you’ve tagged that look most like it. The AI model’s own picks are only kept when those look-alikes back them up.

  • Suggests; you decide. The Review page shows its suggestions one at a time (or in batches) to accept with a swipe, and every change can be undone. Tasks only ever add, never remove.

  • Does more than tags. Faces, studios from watermarks, titles, performers’ hair and eye colour, and tidying up studios and galleries.

A Tags → Suggested card: Tag it Outdoors? Tags → Check in Batch view, two pictures marked to remove Editing a scene by hand from the big view

The Review page: a suggestion to swipe, Batch view (tap the ones that don’t fit), and editing a scene by hand. (Pictures blurred; every name, title and tag is an example.)

Features

  • Review page: suggestions for faces, tags, studios and galleries, to accept, turn down or undo.

  • While editing: “Ask AI” buttons for tags and titles, and suggested tags, performers (by face) and galleries.

  • Tasks: AI tags, look-alike tags, body tags, titles, studios from watermarks, faces, tag pictures and performer details for the whole library.

  • New items after a scan: the same for new items, with the slow AI steps saved for the night if you like.

  • Other plugins’ pages: face matches on performer pages, and better rows in Stash Suggestions.

Review

Review in Stash’s menu (on a phone with Modern UI: More → Review). The top row is what’s reviewed (Faces, Tags, Studios, Galleries); under it, what to do:

  • Suggested: what’s likely missing.

  • Check: what’s already there that may be wrong.

  • New: performers, studios or galleries you don’t have yet.

Tapping a tab goes back to the action you used last there.

How it works on every tab

  • Swipe right (or ✓) to accept, left (✕) to never be asked again, Skip to leave it, ↶ Undo to take the last answer back. On a computer: → yes, ← no, ↓ skip, Z undo.

  • Swipe | List | Batch: one at a time, a grid of them all, or one performer’s / tag’s suggestions at a time with everything ticked, so you only tap the ones that don’t fit (Undo takes a whole batch back). The view you pick is remembered.

  • Tap a picture to see it full screen with its tags, performers, studio and galleries; a scene plays from just before the matched moment. ✎ Edit this scene / photo changes it by hand, whatever the card was suggesting (title, tags, performers, studio, galleries, Organized).

  • Tap a performer’s, tag’s or studio’s picture to open their page; the ✕ in the top right (or Back) brings you back to the same card.

  • At the end: ↻ Check for new suggestions, or Show the skipped ones again.

Faces

  • Suggested: strong face matches (“Is this … ?”): very alike, clearly ahead of every other performer, and in a scene the best match in two or more frames. Yes also learns that face.

  • Check: “Is [performer] in this?” when their face is known, faces were found, and none look like them. ✕ Remove takes them off.

  • New: the same face in 3 or more items without a performer. Is this [them]? when a quarter or more of those items already have one performer whose face isn’t known yet; otherwise New performer? with name ideas (from accounts in file names and links, shared studios and folders, name-like tags, and text the AI reads in the pictures). Creating asks first, showing the card it will make, with gender, tags and more details; …or add to a performer you already have lists the closest faces. Tap the pictures to leave some items out.

Tags

  • Suggested: tags that 50% or more of the 20 closest look-alikes you’ve tagged have.

  • Check: “Does [tag] fit?” when under 5% of its look-alikes have it, only for tags look-alikes judge well. ✓ It fits never asks again.

Studios (mostly the ones made from watermarks)

  • Suggested: Add these to [studio]? for items without a studio in galleries or folders where most of the rest have one, or when a name read in a watermark is close to a studio you have.

  • Check: Merge these into one studio? for names that are the same written differently or misreadings of each other (pick which one to keep and its name; the others become its aliases), and Delete [studio]? for junk, empty, or read-once studios.

  • New: New studio? for an account name read in a watermark only once so far, with the pictures it was read in to check the spelling. …or add to a studio you already have lists the closest names; the watermark’s name becomes an alias so it’s found next time.

Studios → New: New studio? with the name read in a watermark …or add to a studio you already have, with the closest names listed

Galleries

  • Suggested: Add these to [gallery]? for photos in no gallery that look like its photos or sit in its folder, and Add to the gallery [gallery]? for the performers / studio most of its photos have.

  • Check: Does it belong in [gallery]? for photos that look like none of the rest. ✕ Remove takes it out of the gallery (the photo isn’t deleted).

  • New: New gallery? for a folder of 5+ photos in no gallery, named after the folder.

Galleries → Check: Does it belong in Outdoors? Galleries → New: New gallery? from a folder of loose photos

Suggestions need the face and look-alike scans (see Setup). Undo works for everything, merges and deletes included (a deleted studio is made again with its items). Your "No"s are kept in small files in the plugin’s folder.

While editing

  • Tags box (scenes and images): Tags from look-alikes load by themselves, e.g. + Outdoors 72% ✓. Ask AI for tags adds the model’s picks (✓ = look-alikes agree) and ideas for tags you don’t have yet, which you can make with one tap.

  • Performers box: Find performers by face shows the closest performers with how alike they look (✓ = confident).

  • Title box (scenes, images, galleries): Ask AI for titles suggests a few, from the picture, performers, studio, tags and file name.

  • Galleries box (images): the galleries its 20 closest look-alikes are in, e.g. + Holiday 64%.

  • Performer Edit: Ask AI for details suggests hair and eye colour, tattoos and piercings.

Nothing is saved until you click a suggestion and save.

Tasks

Under Settings → Tasks → Plugin Tasks → Better Organizing AI Add-on (local AI). Each section starts with a preview that only writes to the log; tasks only add, skip what’s done, and carry on where they stopped if cancelled.

  • AI tagging: the model sees a picture (for a scene, 4 frames in one picture) and picks from your 250 most used tags, so it never invents tags; its picks are kept only when look-alikes back them up. Items with more than 5 tags skip the model.

  • Look-alike tags: Scan scenes and images fingerprints every item once (well under a second each). An item then gets the tags most of its 20 closest look-alikes have. The add-on’s own tags are never learned from (except on items you’ve marked organized), and a tag you keep removing stops being added.

  • Body tags: a body-part detector adds which parts are shown, using your tags for them; sizes come from the performer (the size you usually tag them with, or their cup size and details). Items that already have a body tag are skipped.

  • AI titles: scenes or images without a title get one from the file name, or the AI’s best idea.

  • Studios from accounts / watermarks: scenes and photos without a studio get one from an account in their file name or links, or one the model reads in a watermark. A new name read only in watermarks needs a second sighting; near misses of a studio or performer you have (letters that look alike, like 1/l and 0/o) count as that one. New studios go under a platform studio (OnlyFans, Fansly, Patreon, Instagram, TikTok), and matching performers are added.

  • Faces: scan every item’s faces once, learn performers’ faces (profile pictures, then photos where they’re alone), find who’s in items without performers, and list performers who may be the same person. Confident matches can be added automatically.

  • Tag pictures: give tags their most typical scene or photo (from the look-alike fingerprints), never using one picture twice; also from the Tags list (••• → Most typical picture (AI)).

  • Performer details: fills empty hair and eye colour only when two looks at different photos agree.

New items after a scan

Turn on what you want in the settings: AI tags, AI titles, studios from watermarks, faces. With AI: wait until night for new items on, new items get only the quick steps right after the scan (file-name tags, look-alike tags, body tags, faces; about a second each) and the AI model’s steps run once at AI: night time (default 03:00), so a big scan doesn’t hold Stash up for hours.

On other pages

  • Performer pages: a Faces row, Might also be in…, lists scanned items where someone looks like them; tick the right ones and add them, or open them in Review.

  • Stash Suggestions (1.1 or later): its Similar Performers, Similar photos and Suggested rows also count how alike faces and pictures look.

Setup

You need two things on the computer Stash runs on (or one it can reach). Each is optional; anything that needs a missing part says so in the log and does nothing.

1. Ollama and the AI model (for everything that says “AI”)

  1. Install Ollama: on a Mac brew install ollama then brew services start ollama; on Linux curl -fsSL ``https://ollama.com/install.sh`` | sh; on Windows, the installer from ollama.com.

  2. Download the model: ollama pull gemma3:4b (about 3.3 GB; ollama.com/library/gemma3). Check it with curl ``http://localhost:11434/api/tags.

  3. Set AI: Ollama address: the default http://host.docker.internal:11434 works for Stash in Docker Desktop on the same computer; use http://localhost:11434 for Stash installed directly. For Stash in Docker on Linux, run the container with network_mode: host and use http://127.0.0.1:11434 (Ollama and the face helper only listen on the computer itself).

  4. Run AI tagging: preview on 10 items (no changes); the log shows what it would add, or what’s missing.

2. The face helper (for faces, look-alikes and body tags)

A tiny local program that turns pictures into “fingerprints”. From this plugin’s folder (plugins/BetterTaggingAI):

sh face-helper/setup.sh                      # install and start it
sh face-helper/setup.sh --from /backup/dir   # the same, with every model from a backup folder
  • Needs Python 3.10–3.14 (picked automatically, or PYTHON=python3.13) and curl. Mac and Linux; Windows is untested.

  • Installs OpenCV, NumPy, ONNX Runtime and the models (about 650 MB) in ~/Library/Application Support/face-helper (Mac) or ~/.local/share/face-helper (Linux; or set FACE_HELPER_DIR). The small models come with the plugin in face-helper/models; the CLIP model is downloaded. On a Mac it starts at login; on Linux it prints the command to run.

  • Check it: curl http://127.0.0.1:11535/health answers {"ok": true, ...}. It listens only on your computer (port 11535, or FACE_HELPER_PORT) and sends nothing anywhere.

  • On a Mac, keep it out of Documents, Desktop and Downloads (programs started at login can’t read them). Run the script again after updating the plugin.

  • To remove it on a Mac: launchctl bootout gui/$(id -u)/face-helper, then delete ~/Library/LaunchAgents/face-helper.plist and the face-helper folder (and ollama rm gemma3:4b).

3. First runs

Run Look-alike tags: scan scenes and images and Faces: scan scenes and images once (a while on a big library; cancel and rerun to carry on), then turn on the after-scan settings you want.

Which models, and why

Each job uses the smallest model that does it well, so it all runs on an ordinary computer.

Job Model Size Why
Tags, titles, watermarks, hair and eye colour Gemma 3 4B (Google), in Ollama 3.3 GB The smallest model that describes pictures well; about 5 s a picture (a scene about 15) on an Apple M4.
Finding faces YuNet (OpenCV) under 1 MB Made only for finding faces; fast without a graphics card.
Telling faces apart SFace (OpenCV) 39 MB Turns a face into numbers that match for the same person, so your performers can be recognised.
Look-alikes CLIP ViT-B/32 (OpenAI) 350 MB Describes a whole picture as numbers, so the items you’ve tagged that look most alike can be found.
Body tags NudeNet 320n 12 MB A detector made for this; far more consistent than asking a general model.
  • Why not a bigger model? gemma3:12b or 27b are more accurate but 3–7 times slower and need 8–20+ GB of memory: hours become days on a big library. Instead the small model is checked: on its own its tags matched the ones you’d give 8–20% of the time; kept only when look-alikes agree, 70–78%. Look-alike tags alone were 79–85% right for items like ones you’ve tagged.

  • Watermarks: asked for an account name directly, small models make one up, so the model only copies out the text it sees, the plugin picks the names out, and a name needs two frames to agree.

  • You can try another vision model with AI: model; only gemma3:4b has been tested.

  • Licences: Gemma 3 is under Google’s Gemma terms (not included; ollama pull gemma3:4b). YuNet (MIT), SFace (Apache 2.0) and NudeNet 320n (AGPL-3.0) are in face-helper/models with their licences; CLIP (MIT) is downloaded. See face-helper/models/README.md.

Settings

Under Settings → Plugins → Better Organizing AI Add-on (local AI):

Setting What it does
AI: tag new scenes and images automatically AI-tag new items after a scan.
AI: tag, title and find the studio of new scenes and images All three AI steps for each new item after a scan.
AI tagging: which items scenes, images or both (empty): which items the AI model tags, in the tasks, after a scan and at night.
AI titles: which items scenes, images or both (empty): which new items get an AI title.
AI: read watermarks on new photos Studio (and performers) from the watermark of each new photo without a studio.
AI: Ollama address Default http://host.docker.internal:11434.
AI: model Default gemma3:4b.
AI: tags to choose from How many of your most used tags the model picks from. Default 250.
AI: most tags per item Default 6.
AI: don’t auto tag from file names first Skip the file-name matching before the AI looks at an item.
AI: include organized items Also AI-tag items marked as organized.
AI: body tags every night At night, run body tags for everything not checked yet.
AI: look-alike suggestions from (%) Edit page “Tags from look-alikes” cut-off (default 20). The tasks only add at 50%+.
AI: skip items with more tags than Items with more tags (default 5) skip the AI model; body tags still run. 0 never skips.
AI: wait until night for new items New items get the quick steps after a scan; the AI model’s steps wait for the night.
AI: night time When the saved AI work runs (HH:MM). Default 03:00.
AI: time zone Time zone of the night time, e.g. America/New_York. Default UTC.
Faces: add confident matches automatically Let the Faces tasks (and new scans) add confident matches.
Faces: likeness needed to add automatically (%) Default 50 (images 5 more).
Faces: likeness needed to suggest (%) Default 36.
Faces: helper address Default http://host.docker.internal:11535.

AI settings set in Better Organizing Tools before the AI had its own plugin still count until you change them here.

Installing

  1. In Stash, go to Settings → Plugins → Available Plugins and click Add Source.

  2. Enter:

    • Name: anything you like, e.g. My Plugins

    • Source URL: https://OpenSourceLuffy.github.io/stash-plugins/main/index.yml

  3. Open the new source, tick the plugins you want and click Install.

  4. Reload the page (or click Reload plugins under Settings → Plugins).

Updates show up in the same place whenever a new version is published. Each plugin’s changelog (linked above) lists what changed.

Requirements and notes

  • Stash v0.31 (tested); Python 3 (standard library only); ffmpeg (the one Stash uses).

  • Ollama with a vision model, and the face helper, as in Setup.

  • The AI gets most things right but not all: check the previews, and use Review or the Ask AI buttons where accuracy matters.

  • The code is in btt_core.py, shared with Better Organizing Tools, so each plugin works on its own. Small files in the plugin’s folder remember what’s been done; deleting them is safe.

  • Works with any theme. Changes are listed in the changelog.

2 Likes

tried installing on mac. not working however? i followed the instructions and olama says its running?

Hey @JoeBiden , give me a little while and I’ll release an update to help with set up and troubleshooting

Hi @JoeBiden , if you reload the plugin I’ve added a task to run troubleshooting items, show you the status of the models, see if they’re reachable, and common problems with guides to how to fix them

Not a super beginner-friendly plugin to get going, but the face recognition review alone is extremely useful and fun to use. The number of times I’ve tried to “name that porn actor” and had to scroll through endless performer lists before I could find who it was, I could have really used this. It’s also recognizing porn actors in amateur videos that nobody seems to have really spotted before, which is interesting. Good job!

1 Like

Hi, and thank you for this add-on, it is very useful to me. I run Stash natively on Windows 11 (Stash v0.32.0, Ollama installed directly), and I wanted to share something that might help, in case you have a moment.

The problem I ran into On Windows, every task and button of the add-on stopped right away with this error. It happens in both Better Organizing AI (1.5 and 1.6) and Better Organizing Tools (2.3):

ModuleNotFoundError: No module named 'fcntl'

btt_core.py imports fcntl at line 17 and uses it once, in locked_json() (line 322). fcntl only exists on Linux and macOS, which I understand is where you built and tested it.

A possible fix Only if you think it is a good idea: keep fcntl where it exists, and use msvcrt on Windows. Linux and macOS would behave exactly as before. I tried it on Windows (4 threads writing 20 times each to the same file, and the count came out at exactly 80), and after that everything I tried worked: the setup check, the look-alike scan, “Ask AI for tags” and the Review page.

# top of btt_core.py, replacing "import fcntl"try:    import fcntlexcept ImportError:  # Windows    fcntl = None    import msvcrt
# in locked_json(), replacing "fcntl.flock(lock, fcntl.LOCK_EX)"if fcntl is not None:    fcntl.flock(lock, fcntl.LOCK_EX)else:    while True:  # LK_LOCK gives up after about 10 s, so try again        try:            msvcrt.locking(lock.fileno(), msvcrt.LK_LOCK, 1)            break        except OSError:            time.sleep(0.2)

For now I patch the file by hand after each update, which works, but it is easy to forget. If you would like, I’m happy to test a Windows version for you.

Two small things you may like to know (no hurry)

  • setup.sh doesn’t run on Windows, which the README already mentions. I did the same steps by hand (a Python 3.12 virtual environment with opencv-python-headless, numpy and onnxruntime, the helper and the models, and the CLIP download) and the face helper works. If it is useful, I’m glad to share the exact commands for a Windows note in the README.
  • Before the look-alike scan has run, opening the Edit form logs an Error with a long traceback (“run the task Look-alike tags: scan scenes and images first”). A short info message might be a little easier to read in the log.

Thank you again for your work, and for the setup and troubleshooting page, which was a great help.

Thank you for such a clear report, and for the fix! It’s in version 1.6.1 (and Better Organizing Tools 2.3.1): file locks now use msvcrt on Windows and fcntl elsewhere, much as you suggested, so you won’t need to patch it by hand any more. While looking into it I found one more Windows problem you hadn’t run into yet: the check for the night timer used os.kill(pid, 0), which on Windows ends the process instead of checking it. That’s fixed too. The “run the look-alike scan first” messages are now a short info line instead of an error with a traceback.

I’d gladly take you up on both offers: if you could try 1.6.1 on Windows, and share the exact commands you used for the face helper, I’ll add them to the README as a Windows section. Thanks again!

1 Like

Thank you so much for the quick fix, and for looking into the other Windows problem too. I’m updating to 1.6.1 and Better Organizing Tools 2.3.1 now, and I’ll tell you how it goes on Windows.

Here are the exact steps I used for the face helper on Windows 11. They worked for me (the helper answers /health with ok for embed, body, match, knn and cluster, and the four model checksums match SHA256SUMS). <dest> is any folder you like.

What I used

  • Python 3.12.10
  • opencv-python-headless 5.1.0.95, numpy 2.5.5, onnxruntime 1.32.0 (the versions pip chose at the time)

Steps (PowerShell)

# 1. Folder and virtual environmentNew-Item -ItemType Directory -Force "<dest>\models" | Out-Nullpy -3.12 -m venv "<dest>\venv"& "<dest>\venv\Scripts\python.exe" -m pip install opencv-python-headless numpy onnxruntime
# 2. Copy the helper and the three small models from the plugin's face-helper folder$src = "<stash plugins folder>\BetterTaggingAI\face-helper"Copy-Item "$src\face_helper.py" "<dest>"Copy-Item "$src\models\face_detection_yunet_2023mar.onnx", "$src\models\face_recognition_sface_2021dec.onnx", "$src\models\nudenet_320n.onnx" "<dest>\models"
# 3. Download the CLIP model (about 335 MB)curl.exe -L -o "<dest>\models\clip_vit_b32_vision.onnx" https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/main/onnx/vision_model.onnx
# 4. Start it without a console windowStart-Process -FilePath "<dest>\venv\Scripts\pythonw.exe" -ArgumentList "`"<dest>\face_helper.py`"" -WorkingDirectory "<dest>" -WindowStyle Hidden
# 5. Check itInvoke-WebRequest http://127.0.0.1:11535/health -UseBasicParsing | Select-Object -ExpandProperty Content

A few notes

  • The helper reads its models from a models folder next to face_helper.py, so the layout above is all it needs.
  • To compare the models with SHA256SUMS, I used Get-FileHash <file> -Algorithm SHA256.
  • In the add-on settings I set the Ollama address to http://localhost:11434 and the face helper address to http://127.0.0.1:11535, because the defaults point to host.docker.internal, which I don’t use.

Please feel free to change anything or to ask me for more details. Thanks again!

Thanks for a fantastic plugin! I was just wondering if the review part is supposed to show the right frame directly or you have to always click on the video thumbnail that shows? I was really confused at first and have dismissed a lot performers.

It could also be nice to narrow it down to only favorite performers, at least the review part?

Thank you - those steps are now in the README as an “On Windows” section, with credit. I added two things you didn’t need at the time: Search by description uses CLIP’s text model, its tokenizer and the tokenizers package, so they’re in as a step 4. If you try them, I’d love to know whether Search works for you on Windows. There’s also a tip for starting the helper at login from the Startup folder.

And thanks for mentioning the addresses: from 1.7, when Stash isn’t running in Docker, the add-on looks for Ollama and the face helper at 127.0.0.1 by itself, so nobody else has to change them by hand. Looking forward to hearing how 1.6.1 goes!

Hi, I also like your plugin a lot, thanks for creating it. However, the latest update to 1.7 prevented it to start, here is the analysis by my junior dev (aka Claude). Wrapping in double quotes fixed it for me:

BetterTaggingAI.yml fails to load: “mapping values are not allowed in this context” (line 248)

Problem: Stash can’t load the plugin and logs this error:

Error loading plugin .../BetterTaggingAI.yml: yaml: line 248: mapping values are not allowed in this context

Cause: Two description values are unquoted plain scalars that contain : (colon + space) in the text Empty: ``http://host.docker.internal``:.... YAML parses that as a nested mapping key, which is invalid there.

Affected lines:

  • Line 248, faceHelperUrl: description: Where the face helper runs, as seen from Stash. Empty: http://host.docker.internal:11535 when ...

  • Line 284, the Ollama address setting: description: Where Ollama runs, as seen from Stash. Empty: http://host.docker.internal:11434 when ...

Fix: Wrap both values in double quotes (or use a block scalar like >-). With that change the file parses cleanly and the plugin loads.

Suggestion: Validating the YAML (e.g. python -c "import yaml; yaml.safe_load(open('BetterTaggingAI.yml'))") before each release would catch this kind of error.

Thank you, and sorry about that! Your analysis was spot on: two descriptions with “Empty: http://…” weren’t quoted. It’s fixed in 1.7.1, quoted just as you did. I also took your suggestion: every plugin’s YAML is now checked before the repository is published, so a file Stash can’t read won’t go out again. Thanks for the clear report and the fix!