Class vs Battle System?

So, one of my classes is a summoner. The summons are being handled by common events. However, I recently discovered that Yanfly's ATB plugin doesn't work with summoning (at least in this way). When I try to cast a summon skill, I get this error:


TypeError After Summon.PNG


So, I'm looking for advice. I'm pretty sure I know what's causing the error, because the error doesn't occur with the skill casting, but after it's cast, which leads me to believe that the error is caused by the plugin being unable to determine the summon's ATB rate. If any of you guys know how to fix this error and keeping both my summoner and the ATB, that would be appreciated, but if not, which would be a better addition to the game? The summoner is not plot-centric, and I do have an idea for another class, but I want y'all's opinions before I decide one way or the other.
To get a better answer, you should post a link to the script, a screenshot of the console's error log (press F8 when you receive this error screen), and the Common Event that ran/was trying to run and caused this error.


My instinct is that this may be an "edge case" bug in @Yanfly's script where it figures out the number of battlers in your party at one point (possibly the beginning of the battle), and uses that number of battlers to set up some of its data structures.  So maybe when it's looping through each current battler, and finds your new "summoned" character, it tries to reference its data structure but it can't find anything.  If my guess is correct, then some of Yanfly's scripts may not work if additional characters are added to (or possibly removed from) the party mid-battle, and it's something he may want to correct!
Right, sorry- I actually meant to put the plugin link in my original post. Here's the link to it:


http://yanfly.moe/2015/11/06/yep-24-battle-system-active-turn-battle/


My common event:


Common Events.PNG


And the error report. I actually didn't know how to get to that, haha! XD


Error Report.PNG

Original thread: https://forums.rpgmakerweb.com/threads/class-vs-battle-system.63957/