Okay, I never used lua before but it is readable enough that I could try to work out a fix or at least a temporary one.
You can add me on discord "Add me as a friend on Discord! Invite expires in 1 week: https://discord.gg/F63UqnxN" Alternatively my username is "archaicvirus." With the dot at the end. If you have any questions about the source code or the way tic80 works I can assist.