mistake fix. in cancel_task()