CSCA Difficulty Issue

Game folder:


The CSCA Difficulty script is causing a problem in the game. When I don't have it going the exp and stuff works fine, but when I choose a difficulty it causes the character exp and stuff to act up. The subclass gains levels when they don't get enough exp to level up and the primary class doesn't level up when they get enough exp. to level up.
Here is the script:
How do I fix this?
Edit: When normal difficulty is picked it works fine, but all other difficulties are causing problems with the subclasses leveling up when they are not supposed to or the main class is not leveling up when they are supposed to.

Closed at @slickdeath97's request.

Original thread: https://forums.rpgmakerweb.com/threads/csca-difficulty-issue.147906/