Avoid [ArithmeticException: / by zero]