cookie bugfix