fixed divisionbyzero error in "spear_per_group = spear / inf_groups"