Fixed a bug which caused the hex identifiers to be out of sequence