fix delete crash
Merge pull request #1 from arielakeman/patch-2

fix delete crash