Sorry for the late reply (itch.io forgot to send me notifications for quite a while, it seems).
I can't reproduce this in my testing. In your case, it seems as if the game doesn't change the variable properly ("fotogramma 0" doesn't exist, because it should always start with "fotogramma 1" and go up from there) but there are no obvious reasons as to why this should happen.
Is it completely random? Do you remember any of the events that triggered the bug (in case I want to dig a bit deeper)?