fix a bug to modification of task