Dynamo Script + Bundle multiple document open

Hello,
help please, I put most of my dynamo script as a bundle in my tab, with icons, grouping hierarchy, use of Quick Access Toolbar, etc. All work great and is beautiful work without using the Dynamo Player…

… but only with one document open, with mode than one and switching to the new the scripts continue to work always on the first.

I made some test script to get the current document name and is always the same.

Same problem with the family editor too.

All my scripts works well from the Dynamo player without problem.
Any hints on where I’m wrong

Thanks

Hi Dario,
Never had that problem. Could you send a pushbutton folder containing script and bundle for me to try?
I have my own toolbar and use quite a few other pyrevit toolbar and never had that issue.