fixed bug that prevented a cookie to be deleted