NPC faction check fix