prevent div-by-0.