a bug in cancel task is fixed