There's a bag and 10 tokens on the table. A player is searching through the bag. Then a script fires that uses putObject to store the 10 tokens in the bag.

Since the bag is being searched, most and sometimes all the tokens are being destroyed, with occasionally one token surviving.

Expected behavior would be for the tokens to enter the bag regardless of it being searched. Alternatively, the objects could be placed on top of the bag, or simply not moved from their location.

If there was a way to detect a bag being searched, that would fix the issue as well.