Fix #10

Fix the crash problem only.
Merge pull request #14 from variousvirgil/patch-1

Fix #10