Fix bug on hexadecimal numbers.