fixed setCookie