Fix cookie removal code