fix cookieStore injection