fix cookie remove bug