Fixed cgi output