fix an error in parser when parsing hex referenced charactor