Strange behaviour

Welcome to the forums.

Would you please format your code as code here on the forum?
Here you can read how that works: Guide to Posting Code.

You can go back and edit your existing post. You don’t have to create a new one. :wink:

Thanks in advance.

That’s not a helpful description. What exactly happens? Do you get any errors? If yes - please post them here completely - formatted as code as well.