Fix "leftover" state between calls to parse on the same parser.