fix cgi handler