fix get cookiestr bug