fixed the acccessing of the command IDs