fix hex2bin