Fix for #17

This is just the one-word change that MrPunch proposes in issue #17. I patched it manually and have been running it in production after encountering the same exception, and it works.