Fixed a stupid bug in the int to hex conversion.