fixed a bug, can't change network while iterating over it