Fix bug for inconsistent task group