Visual problems other Ableton effects and Diva when my plugin is running

Hi all,
So, I’m making a plugin in juce and i have this problem that I can’t find anyone ever mentioning on this forum or elsewhere:
Whenever I drag a max for live device in Ableton (even on another channel as my plugin) the GUI of the max for live device gets glitched, here an example of the gated delay:

If I minimize and maximize the max for live device, it shows fine, or if i click on another channel and then back on the channel with the max for live device it is also fine.

Another problem I got in the same situation is with the Diva synth, the Diva GUI is white until I click on it, then it shows and works fine:

If my plugin is running but the GUI is not showing, there are no problems.

Anyone has an idea what this problem can be/ where I should look? It’s a bug in my GUI I have no idea where to start to look.

Thanks in advance and have a good day!