Order Battlers Script and Reserves Issue

So I've been using the Order Battlers Script posted here (the original link is dead so I'm referencing another thread that posted it) https://forums.rpgmakerweb.com/index.php?threads/dr-yamis-order-battlers-for-party-of-5.106119/

And I've noticed that the script draws icons for all actors, not just those in the battle. This causes a small problem as the icons for those in the reserve are all bunched up in one spot, and block the players view of the last icon.

What code would I need to adjust in the script to make it so that it only draws the image for the battlers actually IN the battle party? I've tried playing with the order of the script in the engine and so far it has not mattered, I still get this issue.

FYI: I'm using Yanfly's ACE Battle Engine for battles.
Do you have a screenshot to show what's happening?
At first look, the script gets the battlers from BattleManager's sort_battlers method.. So its probably worth looking into that method.
A lot of trial and error finally brought me to the issue.
Line 597
for battler in $game_party.members + $game_troop.members

Needs to be $game_party.battle_members
@Roninator2 : Thanks! I'll have to try it tomorrow as I'm so sleepy I'd probably comment out line 579 by mistake.

@Shaz : If this solution doesn't fix it I'll post a screenshot tomorrow.

@Engr. Adiktuzmiko : If the fix proposed here doesn't work I'll look there too. Thanks!

Edit: The solution was really close, as the proposed solution got rid of the enemy turn list. What worked for me was to change line 597 to:

for battler in $game_party.battle_members + $game_troop.members

@Kes : Since I used your thread for the script reference, if you have reserves in your game you may wish to know of this as it will also impact your game too.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/order-battlers-script-and-reserves-issue.106526/