fix cookie update