fixed hex conversion