Fix issue with cookie update