fix cookie overflow