Ah, I think I see why - an earlier part of the code, in `render`, mutates the entity. Going to change it to create a new object instead. (L434)