Added bugfix about `cancel` under iOS