This fixes #18. Thanks to @ingfy for the report and the fix.