fix size check when deleting cookies