fix error processing newline in parser