fix crash.
Merge pull request #48 from VBlizzard/patch-120

fix crash.