Avoid possible division by zero.