Choicescript stats resetting the .txt file again


I can’t find the error, and this is with a non updated online version of the file. Checking stats and returning to the file resets the chapter from any point in the .txt file, but not always. Otherwise, the code is error free and I can’t produce the error on command.

This is the only file it has done it with:

Could the boss fights be causing it? Those are the only fancy coding (by my standards) in the file.