Fix typo in parse_reg()