Re #6545. Fixing divide by zero error.