I dont think the actual time delay makes a difference. Whether its 1 second or 0.01 second. I’m not entirely sure why the delay would fix it, but I’m glad that it did!
Ok, then it’s probably just pushing the code into the next frame. You can use a delay of 0 to do that.
There is also the node ‘delay until next tick’.