fix delete task bug