fixed the crash.
Merge pull request #10 from accuvally/master

fixed the crash.