handle case of cookie no longer in dict (still need to investigate why)