fixed a refcnt bug in psgi plugin