Fixes #24. Thanks @mithriock
Fixes #24. Thanks for the report @mithriock