Hi,
I have tried to understand what exactly happens, but a couple of variables are not defined within the code snipped, so it´s a lot of assuming. So I tried to reduce the problem and created my own code example using your approach trying to simulate…