bugfix cookie system