Fixed OutOfBounds error in CommandGroup.