fixed bug of hex string