bug fixed with groups