Fix an error in the parser state machine