fixed small error with groups