Fix CGI errors