fix crash
Merge pull request #75 from ethoreby/crashfix2

fix crash