fixed npc state bug
matt commited while i was trying to

'