fix to crash on deleteNotify
Merge pull request #1270 from ZappoMan/bugfixes

fix to crash on deleteNotify