Invert condition to fix Program mapping to TaskGroup