Fixing bugs in record_crumb and remove_entities_from_collection