fix bugs when parsing hex/otc