[SOLVED] Galv's Visual Novel Choices x Krimer's Call Menu x YEP Core Engine incompatibility

Hello everyone!
As I posted before, I am working on a Visual Novel project, and I'm using Galv's plugin for the choices and Krimer's plugin so players can call the menu during dialogs.
The only problem is that after I call the menu during a choice (with galv's plugin active), firstly the menu opens, pretty fine, but when I close it, the game stops and give this error:

YEP_CoreEngine.js:1098 TypeError: Cannot read property '0' of undefined
at Window_ChoiceList.drawButton (GALV_VisualNovelChoices.js:168)
at Window_ChoiceList.drawItem (GALV_VisualNovelChoices.js:125)
at Window_ChoiceList.Window_Selectable.drawAllItems (rpg_windows.js:1256)
at Window_ChoiceList.Window_Selectable.refresh (rpg_windows.js:1283)
at Window_ChoiceList.Window_Command.refresh (rpg_windows.js:1438)
at Window_ChoiceList.update (GALV_VisualNovelChoices.js:196)
at rpg_core.js:7035
at Array.forEach (<anonymous>)
at WindowLayer.update (rpg_core.js:7033)
at rpg_scenes.js:262

My js understanding is very low, so I can only detect the origin of the problem, but I don't know how to fix it. Could you guys help me out?
Maybe it would be easier to diseable the menu during choices ?

I suppose windows (messages and choices) are disposed when you open the menu
Krimer's plugin probably save the messages window, but not the choices window
And we will need both pluggins to change that.

BUT
If you save the game and quit, I'm not sure it will load the windows
And saving windows in saves, load them and open them on map is an other difficulty.

Except if Krimer already managed that.
So we need both scripts to check
I have no problem with Krimer's plugin. It works pretty good, and you can save with the choices window open. Also if you load, the choice windows will still be there, so that's fine.

My only problem stands with the galv's plugin showing that error when I close the menu.

I tried to remove yanfly's plugins to see if the error persisted, and it does, so i think it's betweeen Krimer's and Galv's plugins.

Without YEP, the error looks like this:
rpg_managers.js:1949 TypeError: Cannot read property '0' of undefined
at Window_ChoiceList.drawButton (GALV_VisualNovelChoices.js:168)
at Window_ChoiceList.drawItem (GALV_VisualNovelChoices.js:125)
at Window_ChoiceList.Window_Selectable.drawAllItems (rpg_windows.js:1256)
at Window_ChoiceList.Window_Selectable.refresh (rpg_windows.js:1283)
at Window_ChoiceList.Window_Command.refresh (rpg_windows.js:1438)
at Window_ChoiceList.update (GALV_VisualNovelChoices.js:196)
at rpg_core.js:7035
at Array.forEach (<anonymous>)
at WindowLayer.update (rpg_core.js:7033)
at rpg_scenes.js:262

I'm attaching both plugins here. If nothing works, my last option would be remove Galv's one.
I see there is a Galv_VisualNovelChoices Compatibility line in Krimer pluggin

Does the pluggin order change something ?
Well, seems like it does.
Maybe I should have checked this first, or rather, I really should.
It's all good now that I put Galv's above Krimer's.

Thanks bro, you solved it, the order was the problem... I really appreciate it.
That was my bad, I always forget to try changing the plugin order.

Well, thanks again, and sorry for the trouble! XD
No problem, thanks Krimer for the good move ^^

And by the way, i'm learning to use MV pluggins at the same time, so no trouble or wasted for me, don't worry ^^

Original thread: https://forums.rpgmakerweb.com/threads/solved-galvs-visual-novel-choices-x-krimers-call-menu-x-yep-core-engine-incompatibility.119984/