fix cookie removal