major group id bug fix