Fix duplicate reference to `addToSet`.