fix a crash
Merge pull request #23 from judajake/fix_crash

fix a crash