[fix] correct hex conversion