fix not applied if NPC isn't spawned