fix Issue #26:

prevent division by zero warning