Fix divide by zero.