minor fix to cgi