fix setCookie BUG