small stuff, debug prints removal and initialization to shut warning
Fix the checking of a subtask behaviour