Fix a problem on removing a cookie