cookies bugfix 3