Fixed "task_group is not defined"