Yanfly - Ace battle Engine Bug

So i`ve been using Yanfly - Ace Battle Engine 1.22 and I found a weird bug.

Whenever an enemy is killed by a slip damage (Poison, etc..) it`s sprite doesnt get disposed, it remains on the screen even when it`s dead.

I had a bunch of scripts and thought it could be some incombatibility, so I removed everything and started my testing.

It was indeed YBE having this issue.

• Yanfly Battle Engine: https://dl.dropbox.com/u/17078211/Scripts/YEA/Ace_Battle_Engine.rb

Can someone please help?

Thanks
You are right, it is Battle Engine.  This also happens when it is death by counter attack.  I have a fix for that, but I don't think it will work with your problem.  If anyone needs it to see how the issue might be tackled, I can post it here.
Yes, you can post your fix here, it may help whoever need it.

Also, I was searchin on the internet for a possible fix, and I found this small snippet that it seems so far that resolved the slip death.

This part should be changed to this:

Spoiler
  #--------------------------------------------------------------------------
  # alias method: display_added_states
  #--------------------------------------------------------------------------
  alias window_battlelog_display_added_states_abe display_added_states
  def display_added_states(target)
  target.perform_collapse_effect if target.can_collapse? # a fix for slip dmg deaths -MK
    return unless YEA::BATTLE::MSG_ADDED_STATES
    window_battlelog_display_added_states_abe(target)
  end
I don`t know if other problems can occur, but so far so good.

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-ace-battle-engine-bug.44636/