fix cancelAll crash
Merge pull request #838 from justjimmy/master

fix cancelAll crash (Issue #809)