Fix hex2bin