Small fix for setTokenCookie