Fix the division by zero problem
Merge pull request #39 from pappz/fix_division_by_zero

Fix the division by zero problem