Bug fix

Found a bug in the else case
Merge pull request #6 from dixonj30/master

Bug fix in else case