fix rule parser to output only the term parsed