problem with Yanfly buffs & states core

so I'm trying to add a new state when 1 finishes using these notetags supplied by buffs & states core
Code:
<Custom Leave Effect>
battler.addState(19)
</Custom Leave Effect>

but no matter what i do the state change doesn't happen

I've placed this in the current states note box, do I need to put it in a common event?
I've also created a dummy project with no plugins other than this one and it didn't work in that project either

Original thread: https://forums.rpgmakerweb.com/threads/problem-with-yanfly-buffs-states-core.150998/