Ensure id is Hashable