Fix for #15. Thanks to @jaybuff for the bug report.