Global variable prevent to instanciate 2 gadgets concurrently.
Instead, use the gadget .state parameter to store informations related to the gadget instance.