Work around division by zero in 1.7.