Fixed "Attempted to divide by zero." Error.

Fixed "Attempted to divide by zero." Error.