avoid devision by zero
Merge pull request #203 from eisoku9618/avoid-devision-by-zero

avoid devision by zero