Fixed int conversion to hex