Enemy sprite not disappearing on death by counterattack

The title says it all.  Whenever an enemy is killed as a result of a counterattack hit, the sprite stays on screen, though there is the 'death' message and that enemy is unselectable.

The battle scripts I am using are:

Yanfly's Battle Engine http://yanflychannel.wordpress.com/rmvxa/battle-scripts/ace-battle-engine/

Yanfly's Element Popups http://yanflychannel.wordpress.com/rmvxa/battle-scripts/ace-battle-engine/element-popups/

Yanfly's Enemy HP Bars http://yanflychannel.wordpress.com/rmvxa/battle-scripts/ace-battle-engine/enemy-hp-bars/

Yanfly's Enemy Target Info http://yanflychannel.wordpress.com/rmvxa/battle-scripts/ace-battle-engine/enemy-target-info/

Does anyone know of a cure for this?

Thanks.

EDIT

I shall have to ask for this post to be moved - I've just seen it's in VX, not VXAce.  sorry about that.
actually, I experienced that too... I just haven't tried to check out on it
Bump

Has anyone ever found a solution to this?  As various forms of counter attack are quite a significant element in my project, this problem shows up badly.
I haven't had the time to look yet...

can you try this?

Code:
class Scene_Battle  alias invoke_counter_killing_blow invoke_counter_attack  def invoke_counter_attack(target, item)    invoke_counter_killing_blow(target,item)    @spriteset.update  end
Putting it in as a separate mini script doesn't work.  I put it under all battle related scripts.  Or was I supposed to use this to modify an existing script?
nope, it's just a guess...
Is this a problem because of the additional scripts, or does it happen with complete RTP scripts as well?


In any case, it belongs in Script Support, I believe
By adding all custom skills one at a time into a test project, it looks like the culprit is Fomar's Counter attack skill script, which can be found here: http://forums.rpgmakerweb.com/index.php?/topic/2021-counter-attack-skills/

As I've used this skill fairly extensively, I would be very grateful if anyone could see what needs tweaking so that the battler doesn't stay on the screen.

Thanks

EDIT

In case you're wondering why I don't just ask in Fomar's thread, it's because it has been archived, and so I can't post in it.
to me it happens too when I was trying to do a fix/add-on for Victor's counter


I think I found a possible solution, find the part where the counter deals damage, then check if the HP is 0 after damage, then if yes, call the collapse effect for the battler
Err, and how do I do all that? (Hangs head in embarrassment at ignorance)
w8, I'm doing something right now... I'll take a look at that one after this...
Thanks
try to add this below Fomar's

Code:
class Scene_Battle  def invoke_counter_attack(target, item)    @log_window.display_counter(target, item)    attack_skill = $data_skills[target.counterskill]    if attack_skill.for_opponent?      if attack_skill.for_all?        show_animation(target.opponents_unit.alive_members, attack_skill.animation_id)        for t in target.opponents_unit.alive_members          t.item_apply(target, attack_skill)          refresh_status          @log_window.display_action_results(t, attack_skill)          t.perform_collapse_effect if t.hp == 0        end      else        show_animation([@subject], attack_skill.animation_id)        @subject.item_apply(target, attack_skill)        refresh_status        @log_window.display_action_results(@subject, attack_skill)        @subject.perform_collapse_effect if @subject.hp == 0         end    else      if attack_skill.for_all?        if attack_skill.for_dead_friend?          show_animation(target.friends_unit.dead_members, attack_skill.animation_id)          for t in target.friends_unit.dead_members            t.item_apply(target, attack_skill)            refresh_status            @log_window.display_action_results(t, attack_skill)            t.perform_collapse_effect if t.hp == 0          end        else          show_animation(target.friends_unit.alive_members, attack_skill.animation_id)          for t in target.friends_unit.alive_members            t.item_apply(target, attack_skill)            refresh_status            @log_window.display_action_results(t, attack_skill)            t.perform_collapse_effect if t.hp == 0          end        end      else        show_animation([target], attack_skill.animation_id)        target.item_apply(target, attack_skill)        refresh_status        @log_window.display_action_results(target, attack_skill)        target.perform_collapse_effect if target.hp == 0      end    end  endend
it works! You're a star!

Thanks very much for this.
so somehow, most of counter scripts forgot to invoke the states part of battle log, and as much as I don't know why it was set-up that way by EB, it was the battle log that calls sprite collapse... I really find that set-up weird...


but for this to only come up now, I wonder just how few people actually use any counter skills
I've got a few really nifty skills based on this, as I have been trying to get the default skills more interesting.
but really, I wonder why did EB put the collapse call on battle log... it would have made more sense to put it right after adding death state
I have no idea; one more to add to the list of "life's mysteries". 
I haven't run into this problem yet, but i am using the Victor Counter Script, any idea if i should add this script to under mine as well?
I have encountered that bug for Victor's + a bug where the uploaded script actually looks like it was hardcoded to only use Attack as a counter... so for victor's script:

Code:
class Scene_Battle < Scene_Base  #--------------------------------------------------------------------------  # * Overwrite method: invoke_counter_attack  #--------------------------------------------------------------------------  alias :invoke_counter_attack_ve_counter_options :invoke_counter_attack  def invoke_counter_attack(target, item)    if $imported[:ve_animated_battle]      invoke_counter_attack_ve_counter_options(target, item)    else      @log_window.display_counter(target, item)      #Edited this one because IT DOESN'T WORK      item = target.counter_action #$data_skills[target.counter_action]      old  = @subject      @subject = target      targets  = @subject.setup_counter_targets(old, item)      #$victor_targets = targets      #$victor_countered_chain = true      @subject.use_item(item)      #$victor_countered_chain = false      show_animation(targets, item.animation_id)      @subject = subject      targets.each {|battler| battler.item_apply(target, item) }      refresh_status      @log_window.display_action_results(@subject, item)      targets.each {|a| a.perform_collapse_effect if a.hp == 0}    end  endend
though if ur using Animated Battle, this one would probably not work... though that script I guess has it's own collapse options

Original thread: https://forums.rpgmakerweb.com/threads/enemy-sprite-not-disappearing-on-death-by-counterattack.23687/