Help - Disband Multiple Party Members

So I want to make a transfer event that requires the player to disband the party.
This is how it looks like:
Spoiler

When I playtested it, and trying to run the event, I got this error
Spoiler


If I only put 1 script call, it works well.
But if I put 2 or 3 script calls, like the picture above, that error shows up.
How to fix this?
Perhaps there are another way to disband multiple party members?
Here's what's happening ... let's say you have 4 party members, and, in order, they are actors 1, 2, 3 and 4.

You remove the first party member. Your party is left with actors 2, 3 and 4.
You remove the second party member. Your party is left with actors 2 and 4.
You try to remove the third party member, and you get an error, because you only have 2 in your party.

If you just want to keep the leader in your party and remove the other three, and you KNOW there are exactly 4 in your party, you can either:
- remove them in reverse order - [3] then [2] then [1]
- remove [1] three times, as each time you remove [1], the remaining members will shuffle up to take their place
Wah, it works beautifully! (I'm using the 1,1,1 approach)
Thank you for your help! 😀

Original thread: https://forums.rpgmakerweb.com/threads/help-disband-multiple-party-members.86438/