fix cancelAll crash