correction to groupIndex algorithm
anonymous module tag support only