fixed cancel and cancelAll bug on iOS