Bugfix: globals were not saved in cookies