fixed fastcgi bug exposed by apache mod_fastcgi