Fix divide by zero issue in npc target choosing