Fix leading zeros for small hex values