cookies bugfix 2