fix sanitycheck.cgi