fix npe on $cookieStore and specify correct version