fix cookie issues