fix a bug of typo in parse_var()