correct group len check