fix cookie decode probelm