Somehow "undefined" turns up on my Battle Menu

I'm not sure how I achieved this, but I can't seem to remove this.

undefined-menu-problem.png


How could I investigate this, and remove it so this "undefined" category doesn't pollute my battle menu?
I would also very much like it if the Battle Menu could be so that if no skill or activity is possible under a given category, that the option would not even appear in the first place.
I worked it out. Somehow I had a skill type of ? for both my players. Removing that solved it. Just leaving this post in case anyone else ever has this problem.

Original thread: https://forums.rpgmakerweb.com/threads/somehow-undefined-turns-up-on-my-battle-menu.152493/