Fixed to_hex3