fix for crash
Merge pull request #81 from VladimirKorzh/dev

fix for crash