fix Mistake inside commit bb35e1e49a9305c1d3189c24b62d7c0f829e2d5d

  check division by 0 is wrong