Fix issues with id2str array size

groupdis -> groupdid-1