Fix hexadecimal representations of indexes

10 in hex is 0a, not 10