Fix set's intersect.  We shouldn't mutate the map while iterating over it.