fixed a task retraction bug