fixed #364 (Cookie deletion bug)