This is another case of using `id` as a key, which fails if `id` is an object.