fix bug introduced by sync : impossible to delete an archived task