fix zero divide but in normalize