Fix critic bug when several tasks were declared