avoid zero division error
Merge pull request #6 from makiuchi-d/avoid-zero-division

avoid zero division error