MV Removing states - problem(???)

First, I'd like to inform you, that I have all Yanfly's plugins in use in proper order - we discussed it in my previous similar topics, but right now, something weird is happening and I can't find a solution, but to the point:

I wrote a few custom functions for healing class, because in Yanfly's BuffStatesCore plugin we can in states use the following effects:
Code:
<Custom Apply Effect>
//do stuff
</Custom Apply Effect>

<Custom Remove Effect>
//do stuff
</Custom Remove Effect>

<Custom Leave Effect>
//do stuff
</Custom Leave Effect>

and so on... So I added a state to database that when applied it increases target's max HP by 500 for 5 turns (written as function in js file - note field in database is too small for me.)
Code:
    Soulrender.prototype.applyOvergrowth = function(target){
        target.addParam(0, 500);
        target.startAnimation(117);
    };
and when the state is removed it calls this function:
Code:
    Soulrender.prototype.removeOvergrowth = function(user){
        user.addParam(0, -500);
        user.startAnimation(117);
    };
and state in the database is set as is in the image.

Now, for the main problem - when calling method clearStates() states are removed, but effect remains on heroes in party, but calling removeState(stateId) works fine, the problem shows in a skill that calls my custom clearStates() function:
Code:
Soulrender.prototype.clearStates = function(target){
    target._states.forEach(function(state){
        target.removeState(state);
        //console.log("%1 / %2".format(state, target.name()))
    });
}

and this is the healing spell - tranquility - that affects all members in group.
Code:
    Soulrender.prototype.tranquility = function(caster, target){
        var guildBonus = this.skillBonusByPartyRank();
        var p = target;
        var formula = (       
            (60 + guildBonus) +
            Math.floor(caster.mat * 1.22) +
            Math.floor(caster.level * 1.41)
        );
        p.gainTp(Math.floor(formula * 0.54));
        p.gainHp(Math.floor(formula * 0.71));
        p.startDamagePopup();
        p.startAnimation(16);
        this.clearStates(p);
        return 0;
    };

Okay... Now here starts the real problem - when the skill is used for the first time, all states are removed along with their effects, when this skill is used again, it's not removing states, when used third time it removes states from randomly selected party members, even as it is visible on the image - scope is set to "All Allies".

Am I missing something in my understanding of JS? Or what?

Thank you in advance for time and help.

Edit: Nvm - I patched the code and now is everything ok, sorry for trouble.

Original thread: https://forums.rpgmakerweb.com/threads/removing-states-problem.150701/