Solution for issue #81.

I just created a new issue, #81, and would like to submit this fix.  I'm new to github, so please excuse me if I've done things out of order. :)