Minor Fix to NPC Influence algorithm