fixed bug where cookies would fail to save
Bug fixes