fix for racer > 0.5 needs to mutate collection and doc