Don't change set while iterating over it