MV Using Yanfly's Buff States to add a state to an enemy casting the state

Anyone know why this isn't working, I have this in my states "Possesion" notetag, the enemy is the one casting "possession" on a hero

<Custom Apply Effect>
orgin.addState(178);
</Custom Apply Effect>

<Custom Remove Effect>
orgin.removeState(178);
</Custom Remove Effect>

What i'm trying to do is have my ghost cast a possession state on my hero and then have the ghost be unable to move. Once the hero removes the possession state, then the state on the enemy is removed, however nothing is being applied to my ghost. What's strange is I got it to work one time but then it didn't. I feel like i'm missing something
Nevermind :rtear:apparently I've been spelling the word origin wrong for most of my life
Glad it was an easy fix. I’ll close this one for you. Let us know if you need it reopened, though.

Original thread: https://forums.rpgmakerweb.com/threads/using-yanflys-buff-states-to-add-a-state-to-an-enemy-casting-the-state.175812/