You’re doing something strange the script has nothing to do with, based on that one comment. The debugger is here, btw:
I was not talking about simulation.
For all we know, you could have added 5 widgets on top of one another and are simply observing the wrong one. Note that we know nothing about what you’re doing bar from the snippet of script that looks OK.