Hello aphbell,
This should not be happening. What version of TB and what version of Windows are you using?
I have never heard of such a problem in TB v.5 or any of the other earlier versions, of which I have all.
The only thing I can suggest is to open your code in an external text editor and examine it closely to make sure there is not some numbering anomaly which has somehow hidden itself in the code. I presume you used the TB editor to write the code. As you probably know, you can write TB programs in any ascii text editor and it should run.
I have no idea what things go on in the new editor which comes with TB v.6, nor what happens with Windows 10 or 11 or whatever besides Windows 7 and earlier.
Hopefully someone who knows about the latest TB v.6 version and its quirks, and/or Windows 10-11 and it's quirks, will happen along and shed some light on your problem.
Meanwhile, if you want to share the code, I will be glad to try to run it on my system and see if it will work.
Unfortunately, lately there seems to be "nobody home" on this forum and spammers have begun to infest the site. I don't know why Admin doesn't remove that stuff.
Sorry I can't be of more help.
Regard,
Mike C.