cookies bugfix