Bug in code

I'm having an issue when trying to play test my game, I just tinkered the code so I can change my party size but now this is happening
bug.PNG
This usually happens when a disconnect occurs between class data and an actor's class setting in the dropdown, which is generally caused by deleting an actor or class from the database while there are still other things in the database that used them.

The best first step in fixing it is to try selecting a different class for all your actors, and then change it back to what it was originally and click "apply". Then try playtesting again.
I've solved this, thanks

Original thread: https://forums.rpgmakerweb.com/threads/bug-in-code.165415/