Binding issue with template


Hello Everyone. I am facing an issue and i will be thankfull if someone could help me with it.
I was trying to display a popup window as modal view. so i find that solution with a JDialog solution on forum. This work pretty good for me at least for the modal view part.
The problem i have is that on my popup window i have some templates on it with bindings.
The first time i open the window, everything work fine. But whenever i try to open the window again my binding stop working. I have notice that the binding i have define on ignition standard component still working. So my question is why the binding on my templates stop to work. Is it something else i need to take care of when creating a template?
Thank you for your help and time