Avoid arithmatic exception / by zero.