Fix bug in parser and httpoutput.