fix the bug deleting completed task