Fixed potential crash
Merge pull request #20 from SilverTactic/patch-29

Fixed potential crash