[VXAce] Moghunter's XAS ABS - States cannot be inflicted twice

Hello everyone.
I'm actually facing a pretty problematic issue with the XAS ABS System, where I inflict to the player a certain state by "picking up an" event, but if the player attempts to pick up the same event after the state is over, the same state does not get inflicted anymore.

I do not know why is this happening, I have attempted also to let the XAS Scripts only in the game, but still happening.
Can someone please help me with this issue?

Here is the XAS script I am using: https://atelierrgss.wordpress.com/download-page-6/
And also here is a demo where I have this issue happening: https://www.dropbox.com/s/p3un5t9hehuomer/XAS ACE.exe?dl=0
Bump.
Bump.
Bump
Bump.
Bump.
Bump.
Bump.
Code:
class Game_Battler
  alias amn_xas_gamebattler_removestate remove_state
  def remove_state(state_id)
    if state?(state_id)
      state = $data_states[state_id]
      xas_remove_state(state)
      #
      revive if state_id == death_state_id
      erase_state(state_id)
      refresh
      #
    end 
    x_remove_state(state_id)     
  end
end

This appears to fix it, but I haven't tested extensively.
Code:
class Game_Battler
  alias amn_xas_gamebattler_removestate remove_state
  def remove_state(state_id)
    if state?(state_id)
      state = $data_states[state_id]
      xas_remove_state(state)
      #
      revive if state_id == death_state_id
      erase_state(state_id)
      refresh
      #
    end
    x_remove_state(state_id)    
  end
end

This appears to fix it, but I haven't tested extensively.

Thank you very much! It worked correctly and no issues were found during my tests.
Thank you so much!

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/vxace-moghunters-xas-abs-states-cannot-be-inflicted-twice.106099/