corrects divide by zero
Merge pull request #97 from GeneChatham/bugfix

corrects divide by zero