Hi,
I have managed to do a workaround by adding a global boolean variable which I put to true the first time the plugin is executed. This way I can force the code inside the if to not be executed more than one time. It works but I don’t know if its a good final solution.