fixed the cookie bug!