Hello,
It’s really hard to say without seeing the example, but are you removing the primitives from the collection? I think they are destroyed by default when they are removed, so that could be causing your problem.
You can try setting the PrimitiveCollection.destroyPrimitives property to false to see if that fixes the problem.
Best,
Hannah