[fix] issue #5
Merge pull request #6 from endyul/osx-patch

[fix] issue #5