Look, monkey boy.
The cardinality of the first nine items in a set will be 1 to 9 whether you're counting in decimal or hexadecimal.
2 (dec) does not equal 5 (hex). That's why it blowed up. Fix it.
*sigh* Some peoples' kids.