Prevent division by zero
Merge pull request #8 from jurianeven/fix-divzero

Prevent division by zero