fix hidden groups bug