Division by zero warning fix.
Merge pull request #2 from cinu/master

Division by zero warning fix.