fix group count