Closes #3, with test to reproduce
Merge pull request #1 from hannesgassert/crash