Divide by zero fix