fixed renew cookie bug